![]() |
Different # of posts shown on front page, "Page 2" (older entries), etc.
This seems like it should be really simple, but I have a site's blog on the home page. Client wants only one post shown on the home page AND the sidebar only on the home page.
For the home page, I used the Custom Post Limits plugin and set the front page to 1. Unfortunately, when you go to the older entries (Page 2, Page 3, etc.), each of these pages only shows a single post. Also, the sidebar shows up on all of these pages, but obviously not other pages or single posts. One area of Atahualpa I haven't messed with much is the Archives feature. I know you can create a list archive, but can you create one with excerpts? That will work too. |
I suppose the easy way to get it to look how I want is the way it displays when you click on a category page. Is there a way to create a general archive page that shows X number of posts that way?
|
Bumping this one up. To me, this seems like it SHOULD be easy but I can't figure it out. I've tried the Custom Post Limit plugin, but that again limits anything using index.php to the designated post count. I just want it to show more posts when you click "Older Entries".
|
Just wrap a php if around 'The LOOP' to check the post count and if you are on the front page 'is_front_page()'
Somewhere there is a thread where I gave directions for changing the 'exclude side bar on these pages' to an 'include sidebar on these pages' |
Here's the loop code:
HTML Code:
<?php /* Post Container starts here */ |
I'd put the if at the beginning and the closing bracket at the end of that section so the entire loop is enclosed by the if
|
I apologize, but I'm really struggling with the code on this one. Based on Googling around, this is the piece of code I was playing with:
HTML Code:
if ( is_front_page() AND $count == "1") { break; } Original Code HTML Code:
<?php /* Post Container starts here */ HTML Code:
<?php /* Post Container starts here */ |
go to ato->Style & edit CENTER COLUMN->The LOOP and look at the examples
|
All times are GMT -6. The time now is 01:46 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.