Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

Setting number of post count in category page


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 25, 2011, 04:22 AM
tropmixxer
 
2 posts · Apr 2011
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.
  #2  
Old Apr 25, 2011, 04:49 AM
juggledad's Avatar
juggledad
 
22,166 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Apr 25, 2011, 07:55 AM
tropmixxer
 
2 posts · Apr 2011
Thanks for your help.
I will check out that template.

Bookmarks

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 11:57 PM.


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