How to remove #more tag in WordPress
Posted: Mon Feb 21, 2011 5:08 am
To remove the #more in WordPress listing, follow the steps below:-
* Login to your wordpress
* Go to Appearance -> Editor
* Click on functions.php at the right sidebar
* Copy and paste the code below, and click “Update File”
function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'remove_more_jump_link');
* Now the #more jump at the post listing should have removed
* Login to your wordpress
* Go to Appearance -> Editor
* Click on functions.php at the right sidebar
* Copy and paste the code below, and click “Update File”
function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'remove_more_jump_link');
* Now the #more jump at the post listing should have removed