Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Inaccurate Number of Posts Showing On Front Page (http://forum.bytesforall.com/showthread.php?t=3965)

OttO Oct 19, 2009 05:16 PM

Inaccurate Number of Posts Showing On Front Page
 
Hi,

As I stated in another thread, I've been recently developing strange problems with my site. One that is really bothering me and I can't figure out: no matter what I set the settings to, I can't control how much Center Column content shows up on the front page. Right now I can't get more than one post (the most recent) to display.

I have total posts set to 25. I have Full Posts/Excerpts set to "Excerpts" and Display "6" which used to show full posts for the first six and then excerpts for the other 19. I've had one post show only, I've had two full posts and four excerpts with no other posts after that and other variations.

Suggestions? Thanks.

juggledad Oct 19, 2009 06:47 PM

What do you have set at dashboard->settings->reading->Blog pages show at most?

OttO Oct 19, 2009 08:22 PM

25 - which has been pretty much the same since I launched the site a few months ago.

juggledad Oct 20, 2009 06:07 AM

if I remember right, you have made changes to 'The LOOP'

Have you made nay changes to ABOVE or BELOW the LOOP?

Copy the entire code - for each section you changed) to a text editor (so you can go put it back in later) and then reset the page defaults.

Is the problem still happening?

OttO Oct 20, 2009 05:52 PM

I followed your instructions and it seems to have worked. The first thing I did after was add the code to the Loop that you provide to exclude a category from appearing in the center column. Then the problem returned. I removed the code, and the problem is gone.

Any ideas? I have one category that shows up in the left sidebar, one that shows up in the right sidebar and the center column is for everything else.

juggledad Oct 20, 2009 06:24 PM

Ah, well the way it works is this.

You've told wordpress to display 25 posts on the front page so you have a loop that will get the first 25 posts. As each of the 25 posts is being processed, it is handed to the code in 'The LOOP'

There you have code which looks at each posts and says if the post is in category X, skip it, other wise display it.

Wordpress is handing you 25 posts, you are deciding to ignore some of them.

OttO Oct 20, 2009 08:30 PM

Cool, this part is making sense now - we had a change in quantity of various category posts so I can see how that would have an impact. But...

In Options, under Configure Excerpts I have it set to "Show Excerpts" and then to show the first six posts as Full. However, all of the posts are showing as excerpts. Maybe I'm just missing a setting somewhere?

juggledad Oct 21, 2009 04:27 AM

this could be a byproduct of the same issue. The code looks to see if the post counter (set by wordpress) is greater than the number of full posts - if it is, the_excerpt() is called so if the first six posts were in the excluded category, they won't be shown, but you will now be over the 'full posts to show on homepage'

it can get complicated can't it


All times are GMT -6. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.