Winner of the Best WordPress Business Website - WP Honors 2011
Since 2004
 

Forums

 

Manuals

 

Videos

 

Live Support

 

WPMU.org

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

Inactive

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?

Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:

  • Download 250+ Premium Plugins and Themes
  • Get unlimited support from WordPress Experts
  • Get help with your WordPress or BuddyPress projects

Help & Support from WPMU DEV members and staff

Inactive

Nobody? This is still driving me nuts. Guess I just came here to vent ;)

Keeper of the Dark Chocolate

Not ignoring you. Just haven;t used the theme myself.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Inactive

Thanks - it's gotta be something I'm missing.

Elite

My guess is that you select the page you want the posts on in the backend: Settings -> Reading (where you select the static frontpage, the other dropdown is for a posts page).

Inactive

... but you'll still need a custom page template with a mini-loop in it to grab the blog posts and display them.

This theme probably doesn't have that. Most don't.

Elite

don't know if it's the same with the normal wp, but the last time I tried this (wp2.7) it automatically picked the archive.php template to display the posts

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Staff

"if I chose the option to show the custom homepage how do I show posts?"

A couple of ways - you could either use a page template that operates much like the blog homepage template, or you could put your posts into a category and point to the category page (that's less than ideal but what I set up for this a while back: http://edublogawards.com )

Staff

"if I chose the option to show the custom homepage how do I show posts?"

A couple of ways - you could either use a page template that operates much like the blog homepage template, or you could put your posts into a category and point to the category page (that's less than ideal but what I set up for this a while back: http://edublogawards.com )

Elite

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'); ?>

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

<?php include (TEMPLATEPATH . '/custom-homepage.php'); ?>

<?php } else if($tn_wpmu_layout_mode == "blog homepage") { ?> -->

<div id="post-entry">

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

<?php include (TEMPLATEPATH . '/headline.php'); ?>

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

etc. etc. ......

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

Elite

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'); ?>" (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'); ?>

<?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.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Staff

Very cool indeed, thanks for sharing!

We can help you out. Become a member today to:

  • Let our team help you out today and access to over 250+ Premium Plugins and Themes
  • Find out why people saying "it's like having your own developer"
  • WPMU DEV - The WordPress Experts