Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Setting number of post count in category page (http://forum.bytesforall.com/showthread.php?t=13903)

tropmixxer Apr 25, 2011 04:22 AM

Setting number of post count in category page
 
Hi I really need help with this issue because I'm pulling my hair out on this one.

I'm running on Wordpress 3.1.1. Atahualpa 3.6.4

I want to show 2 posts on my home page and at least 10 post excerpts on multi posts pages.
I've set the number of post to show on the home page to 2 from "WP Settings -> Reading".
When I do this, I found that every other page that are suppose to have multiple post shows max 2 post. Tag pages, category pages, monthly archives, search results. Every supposed multi post page shows at most 2 posts.

So I went back to fiddle with "WP Settings -> Reading" and found when I change the number of post to show, every multi page post follows.

I've tried using custom menu and it does not work. And I've tried creating archives page from the Atahualpa theme options and it does not work. And I cannot find the line on query_posts in the coding.......
Nothing seems to work. Every multi post page follows what I set on "WP Settings -> Reading".

I want to show 2 posts on my home page and at least 10 or all posts excerpts on multi posts pages.
Will the good people here pls pls help with a solution. I have a feeling that it is a quick fix. Just that I'm too blur to see it.

juggledad Apr 25, 2011 04:49 AM

to do this you are going to have to use a page template to create a new query where you limit the number of posts retrieved.

Wordpress uses a general loop for all pages and the number of posts/page is set by the WordPress option. So if you want to change it for a specific area, you need to code a new loop.

There is a template in the Gold Forums Tutorials that will allow you to set a custom query. You could use it for the front page and set the query limit to 2 and leave the default WP limit as 10.

tropmixxer Apr 25, 2011 07:55 AM

Thanks for your help.
I will check out that template.


All times are GMT -6. The time now is 09:23 AM.

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