You could do that simply by seting Blog pages show at most to 1 in Administration > Settings > Reading.
Or you could modify your loop to only show one post (see the template tag, query_posts())
Or you could use a plugins such as Custom Query String Reloaded.
Thanks but that’s not quite it. I want the home page to be a static Page with content on it. Pulled into it is the most recent post.
To add a layer of complexity, I want that traditional, dynamic homepage, to appear as a secondary page.
http://www.obrienstore.com
I have two pages there to note – Home and Blarney Social Club
I want home to be static at obrienstore.com – pulling in the most recent post to a section.
Blarney Social Club is the blog home and should live at obrienstore.com/blarney-social-club
Actually, what Michael said is *exactly* it. You set a Page as your index page in your settings, and set another Page as your blog page. Then you use a query in your templates if you want to pull in extra information.
I think I’m catching on
Okay, so I set a Page as my index in my settings… how?
Blog address (URL) or WordPress address (URL)? But I don’t want to MOVE my blog which is what WordPress address would do.
Or this?
Front page displays
– Your latest posts
– A static page (select below)
* Front page:
* Posts page:
Then set another page as my blog page? obrienstore.com/blarney-social-club becomes my blog homepage how?
Thanks alot – this has been keeping me up nights
I’ll figure out the query next, for now I’m just trying to get the pages to work.
>>Or this?
Front page displays
– Your latest posts
– A static page (select below)
* Front page:
* Posts page:
Then set another page as my blog page? obrienstore.com/blarney-social-club becomes my blog homepage how?<<
YES.
>>I’ll figure out the query next, for now I’m just trying to get the pages to work. <<
On the “yourpagename.php” template, after the initial Loop, put in a query to pull in what you want. For example, if you want category 7 to show up after the page content displays:
<?php $index = new WP_query(‘cat=7&showposts=3’);
if($index->have_posts()) : while $index->have_posts()) : $index->the_post(); ?>
Display for posts here
<?php endwhile; endif; ?>
That’s pretty much all there is to it.
doodlebee,
Can you explain what I put in the line where you have “Display for posts here”?
I’m new to this. 🙂
Thanks!
Also, there was a missing character in your code, here’s what I have now:
<?php $index = new WP_query(‘cat=7&showposts=3’);
if($index->have_posts()) : while ($index->have_posts()) : $index->the_post(); ?>
Display for posts here
<?php endwhile; endif; ?>
Any help is appreciated!