WordPress.org

Ready to get started?Download WordPress

Forums

No "read more" in custom posts with excerpts (2 posts)

  1. catwingz
    Member
    Posted 1 year ago #

    I have custom category pages with the first post set to "sticky" and the rest intended to show excerpts with "more." Now the excerpts show "[...]" but there is no link.

    I tried following the guide of this forum post:
    http://wordpress.org/support/topic/excerpts-no-read-more-link, replacing

    the_content();
    } else {
       the_excerpt();
    } ?>

    with

    the_content();
    } else {
       the_excerpt(); ?><span class="read_more"><a href="<?php the_permalink(); ?>">[ Read More &rarr; ]</a></span>
    } ?>

    but it breaks the page and I end up with a white screen.
    The URL is http://dev.blueplanetlaw.com/ferc-bpa-regulatory-advice-and-litigation/ .

    The pastebin file is here
    <iframe src="http://pastebin.com/embed_iframe.php?i=jtD4AcvP" style="border:none;width:100%"></iframe>

    My php is weak and I would really appreciate help with this. Thanks

  2. catwingz
    Member
    Posted 1 year ago #

    The relevant code begins on line 53 in the pastebin file.
    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic