ThemeShaper Forums » Thematic

Show latest post on home page

(3 posts)
  • Started 13 years ago by shaneporter66
  • Latest reply from shaneporter66
  • This topic is resolved
  1. Hi everybody,

    I'm developing a child theme based on thematic.

    In my wordpress 'reading' settings, I have the front page set to a static 'home' page. On the front page, I wish to show the latest blog post (in its entirety, probably without comments). I've hooked into the post header, using the 'thematic_postheader' filter, which is hooked up to the following code:

    function bfb_postheader($postheader) {

    if( is_page('home'))

    $postheader = $firstPostContentInHere . $postheader;
    $postheader = '' . $postheader;

    return $postheader;


    What I want to do is set up the $firstPostContentInHere variable to show the latest post's content (including date it was added etc.) I've tried a few things, but I'm getting strange results, such as things not showing, duplication of content, etc.

    If anybody can help me, I'd be truly grateful!

    Posted 13 years ago #
  2. Hey,

    don't think that this will work. thematic_postheader() is already inside the loop and the important code needs to be in front of the loop.

    Take a look at scriptygoddess ยป Wordpress : Make home page show latest post (in ... .. and another version of this Display only One Single View Post in WordPress.



    Posted 13 years ago #
  3. Hi Chris,

    many thanks for your reply.

    Your information helped me to understand why I wasn't going to get anywhere with this, and also to an older bit of code that I had written that did what I needed.

    Thanks once again for your response. BTW - I love thematic!

    Posted 13 years ago #

RSS feed for this topic


You must log in to post.