ThemeShaper Forums » Thematic

[closed]

Latest Post as homepage

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

    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 2 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 2 years ago #
  3. middlesister
    Member

    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 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.