If showing custom homepage (Nelo) how to show posts on another page?

So I’m messing with the WPMU-Nelo theme and I’ve got a question. I’ve tried writing a hack or something to work around this but it’s just not working. Anyway… In the theme options, if I chose the option to show the custom homepage how do I show posts? I’ve tried choosing the posts page in the reading settings – I created a page called “Blog” and went into the reading settings and setting the posts page to be “Blogs”… but now, if I click on “Blogs” in the navigation I actually see the custom homepage. It’s a little funky.

So if you chose the custom homepage in Nelo (and maybe some other themes?), how do you show the posts on another page?

It’s gotta be something simple… right?

  • ChuckS
    • The Crimson Coder

    Hello,

    I’m trying to make a template using the homepage template as mentioned above in the Triden theme (same as Nelo). I’ve put the template info at the top and saved as page-blog.php as per WP Codex manual. It works great without any edits and my "My Blog" page looks like the "custom homepage". When I edit out the reference to the custom homepage, I get only one post and the widget areas are without css. Here’s what I did, any suggestions?

    <?php

    /*

    Template Name: Page Blog

    */

    ?>

    <?php get_header(); ?>

    <!– <?php include (TEMPLATEPATH . ‘/options.php’:wink:; ?>

    <?php if(($tn_wpmu_layout_mode == "":wink: || ($tn_wpmu_layout_mode == "custom homepage":wink:) { ?>

    <?php include (TEMPLATEPATH . ‘/custom-homepage.php’:wink:; ?>

    <?php } else if($tn_wpmu_layout_mode == "blog homepage":wink: { ?> –>

    <div id="post-entry">

    <?php if (have_posts()) : ?>

    <?php include (TEMPLATEPATH . ‘/headline.php’:wink:; ?>

    <?php while (have_posts()) : the_post(); ?>

    etc. etc. ……

    No other changes except for the edit out of the options.php.

    Thanks!

  • ChuckS
    • The Crimson Coder

    I’m sure everyone else knew this, but I finally got it figured. I did this on the Triden Theme which is almost identical to the Nelo Theme. To create a page template to list your posts when using the custom homepage option:

    1. Open the index.php, save it to your desktop as posts-page.php (or some other template name you like).

    2. Add the following to the beginning of the code (this creates a template page);

    <?php

    /*

    Template Name: Posts Page

    */

    ?>

    3. Just before the line "<?php if (have_posts()) : ?>" add this one line of code "<?php query_posts(‘show_posts=5’:wink:; ?>" (5=the number of post to show) so that it looks like this;

    <?php

    /*

    Template Name: Posts Page

    */

    ?>

    <?php get_header(); ?>

    <div id="post-entry">

    <?php query_posts(‘show_posts=5’:wink:; ?>

    <?php if (have_posts()) : ?>

    4. Leave the rest of the code intact. Save and upload to the theme folder.

    5. Create a new page called "My Blog" (or something else you like) and select "Posts Page" under Template.

    6. No other page content needed.

    6. Publish page.

    Simple, but works for me as a newbie. Also gives you the sidebar. Any suggestions or better ways would be welcome.