Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Setting number of post count in category page

Old Apr 25, 2011, 04:22 AM
2 posts · Apr 2011
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.
Old Apr 25, 2011, 04:49 AM
juggledad's Avatar
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Apr 25, 2011, 07:55 AM
2 posts · Apr 2011
Thanks for your help.
I will check out that template.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How setting page and category menu items for be opened in a new windows? bigliettaio Page & Category Menu Bars 6 Nov 24, 2010 09:36 PM
Setting post/page title to <h2> rather than <h1> jacdew Atahualpa 3 Wordpress theme 1 Nov 7, 2010 09:25 PM
Comment count next to post title? crashley1784 Comments, trackbacks & pings 0 Jun 28, 2010 06:22 PM
[SOLVED] Display 'Post Count' on all MULTI post pages joan Post-Kicker, -Byline & -Footer 1 Nov 18, 2009 03:08 AM

All times are GMT -6. The time now is 09:28 PM.

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