ThemeShaper Forums » Thematic


Latest Post as homepage

(3 posts)
  • Started 12 years ago by algegro
  • Latest reply from middlesister
  • This topic is not resolved
  1. algegro

    I'm working on a weekly comic site and I was hoping to use thematic as the parent theme. The only problem with this approach is that I need the full latest post to be the home page, including comments.
    Is it possible to achieve this through a child theme?

    Posted 12 years ago #
  2. you could copy the blog template and adjust the query to only pull 1 post. that will easily handle the latest post part... the comments are trickier. not impossible, just can't think of it off the top of my head.

    Posted 12 years ago #
  3. middlesister

    I think to get comments to show, we need to make wordpress believe we are on a single posts page. Maybe something like

    $latest_post = get_posts( array( 'numberposts' => 1) );
    $latest_post_id = $latest_post->ID;
    query_posts( 'p=$latest_post_id' );
    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.