Forums

[resolved] Excerpted posts to appear in full on page (3 posts)

  1. TudorGrrrl
    Member
    Posted 2 years ago #

    I am using the more tag and <?php the_content( $more_link_text , $strip_teaser, $more_file ); ?> to have excerpts of my posts appear on the homepage and it's working fine.

    However I have permalinked pages which pull in posts by category, and I want the full post to appear on those pages. Is there anything I can do with the page.php file to make it ignore the more tag?

    The site is called http://www.gourmetrabbit.com

  2. Kate
    Member
    Posted 2 years ago #

  3. MichaelH
    Volunteer
    Posted 2 years ago #

    With the help of the Template Hierarchy article, determine what Template is displaying your category archives (could be archive.php) then use the example from the_content() article:

    <?php
    global $more;    // Declare global $more (before the loop).
    $more = 1;       // Set (inside the loop) to display all content, including text below more.
    the_content();
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.