Page 1 of 1

How to remove #more tag in WordPress

Posted: Mon Feb 21, 2011 5:08 am
by michaelvk
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

Re: How to remove #more tag in WordPress

Posted: Wed Feb 23, 2011 1:30 am
by yinji
it is a difficulty question for me,wait the answer....