• Hi all…I’m making a WP website, and want the blog page to be a series of announcements – showing only the title that links to a page with the full announcement. If I use the MORE button, it has extra space after the post title, and then says “continue reading….” I found where to remove that in the functions.php page, although I’m not quite sure what all to remove as I don’t want the space there either.

    function theme_get_content($args = array()) {
    	$more_tag = theme_get_array_value($args, 'more_tag', __('Continue reading <span class="meta-nav">&rarr;</span>', THEME_NS));
    	theme_ob_start();
    	the_content($more_tag);
    	$content = theme_ob_get_clean();
    	return $content . wp_link_pages(array(
    				'before' => '<p><span class="page-navi-outer page-navi-caption"><span class="page-navi-inner">' . __('Pages', THEME_NS) . ': </span></span>',
    				'after' => '</p>',
    				'link_before' => '<span class="page-navi-outer"><span class="page-navi-inner">',
    				'link_after' => '</span></span>',
    				'echo' => 0
    			));

    Or is there an easier way to show all the post titles on the blog page and have them link to that particular post?

    thanks, hopefully it isn’t too confusing of a question

    carrie

Viewing 8 replies - 1 through 8 (of 8 total)
  • What theme are you using? You could try just putting a return; as the first line of the function. That will tell you for sure what exactly the function is returning.

    Thread Starter intcon

    (@intcon)

    It’s a custom theme….

    Ok, have you tried contacting the developer or just killing the function on the first line (add return;)? That might not even be the correct function but it’s an easy way to find out.

    Thread Starter intcon

    (@intcon)

    I would just add that code before the
    function theme_get_content
    line?

    Return needs to be added inside a function, otherwise it will throw a parse error. But this function might be used in more than one place, you may need to look at hiring someone for an hour or something if the theme is not publicly available for people to examine.

    function theme_get_content($args = array()) {
            return;
    	$more_tag = theme_get_array_value($args, 'more_tag', __('Continue reading <span class="meta-nav">→</span>', THEME_NS));
    	theme_ob_start();
    	the_content($more_tag);
    	$content = theme_ob_get_clean();
    	return $content . wp_link_pages(array(
    				'before' => '<p><span class="page-navi-outer page-navi-caption"><span class="page-navi-inner">' . __('Pages', THEME_NS) . ': </span></span>',
    				'after' => '</p>',
    				'link_before' => '<span class="page-navi-outer"><span class="page-navi-inner">',
    				'link_after' => '</span></span>',
    				'echo' => 0
    			));
    Thread Starter intcon

    (@intcon)

    lol….ok, that’s apparently the wrong place to do that….everything on the front page disappeared and it made no difference to the posts with the “more” code. I’ll keep looking.
    thanks!

    Well that sucks. Can you put the code of the blog template in a pastebin or something?

    Thread Starter intcon

    (@intcon)

    I found this website
    https://digwp.com/2010/01/wordpress-more-tag-tricks/

    and fixed my more problem …thanks so much for trying Andrew!! much appreciated…=)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Continue reading text…’ is closed to new replies.