Forums

Showing full posts on homepage, but snippets elsewhere (2 posts)

  1. Nick0r
    Member
    Posted 2 years ago #

    Hi all,

    I'm wondering if anyone knows how I can setup wordpress so that on the homepage full posts are shown, but as soon as they move off the homepage and are located on the category pages, or archive pages, they will show as snippets with a "more" link.

    Is this possible? If so, how?

    Thanks

  2. BPartch
    Member
    Posted 2 years ago #

    Hello

    Yes edit The Loop in archive.php. Remove the line that calls in the the_content and replace it with the line for the _excerpt:

    Change:

    <?php the_content(); ?>

    to:

    <?php the_excerpt() ?>

    Then after that you need to create a link for the more tag.

    < a href="<?php the_permalink() ?>" title="Continue reading <?php the_title(); ?>" >More< / a >

    (No spaces in the above)

    This is typed off the top of my head and untested, but I believe it will work.

    Hope it helps. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags