WordPress.org

Forums

Titles on front page but full posts to show (3 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I've been trying to get the front page to show just the titles and an except. When I edited the index page template to remove the post, the post was also removed on the post pages.
    How do I get the posts back while keeping only the titles and category titles and post times on the front page.
    the page I'm working at is currently at http://beachballs.net/BBlogs/
    thanks.

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    I use
    <?php
    if ($single) {the_content(); }
    else if ($cat) { the_Excerpt(); }
    ?>
    That displays the excerpt on the category pages, the content on the single pages, and nothing on the front page. (Well, except the title, but that's separate.) If you want to display the excerpt on the front page, too, change "else if ($cat)" to just "else".

  3. wchung
    Member
    Posted 10 years ago #

    Thanks, guys. I'll check out those tips!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.