Displaying the Full Post on the Front Page
  • cbavotacbavota November 2010

    All of my themes currently use two functions to display posts on the front page. They are theme_excerpt() and theme_content(). Both function strip the images from the posts and then another function grabs the first image and displays it in the appropriate place.

    If you wish to display your full post exactly how it appears on the single post page, make sure to select the content on the Front Page option admin menu and then open up the theme's index.php file and change theme_content() back to the default WordPress function the_content().

    For some themes, such as Magazine Basic, you would need to open the layout folder and edit the option page file associated with the layout you have chosen, ie option layout 1 is option1.php.

    You can still limit what is displayed by using the More tag.

  • cbavotacbavota January 2011

    You might also have to remove this code, which displays the thumbnail:

    if(function_exists('has_post_thumbnail') && has_post_thumbnail()) { 
    echo '<a href="'.get_permalink().'">';
    the_post_thumbnail('leftcol-thumb', array('class'=>'alignright'));
    echo '</a>';
    } else {
    echo resize(theme_option('leftcol_imgwidth'),theme_option('leftcol_imgheight'),'alignright');
    }


    The above is from Magazine Premium. It should look similar is other themes.

  • Thank you! I spent almost an hour searching for this information, but I guess I didn't have the right key words. The quick response is appreciated.

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged