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 » Center area post/pages » Excerpts, Read more, Pagination »

[SOLVED] How can I get more posts to show up on archive/category pages?


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 Jun 24, 2010, 11:05 PM
cowgrrrl
 
29 posts · Jun 2010
[SOLVED] How can I get more posts to show up on archive/category pages?

Under Settings, I have set my blog to show a maximum of two posts. This is what I would like on the main page. However, that setting also apparently applies to all pages, including the archives and category pages.

Is there a way that I can show more posts on these secondary pages?
  #2  
Old Jun 25, 2010, 03:20 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
You shoul set the posts in the dashboard-settings-reading to the max you want on any page, then in ato-style & edit center column-The LOOP you coulees add some php logic to only display 2 posts if you are on the format page. See the example in the documentation on the page and change the == to <
  #3  
Old Jun 25, 2010, 06:44 PM
cowgrrrl
 
29 posts · Jun 2010
OK, I found the loop and experimented with the code examples, but I'm not quite getting it. Can you show me what exactly this code should say (for two posts on the home page)?


[?php if ( is_front_page() AND $bfa_ata['postcount'] < 2 ) { ?>

<?php } ?]


(I changed the end brackets to avoid any potential problems.)

Also, does it matter where in the loop it goes?
  #4  
Old Jun 25, 2010, 09:38 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
The first line should be
HTML Code:
<?php if ( is_front_page() AND ($bfa_ata['postcount'] < 3)) { ?>
and will be the very first line of ato->Style & Edit Center Area->The LOOP
And the other line
HTML Code:
<?php } ?>
will be the very last line of The LOOP
  #5  
Old Jun 25, 2010, 11:13 PM
cowgrrrl
 
29 posts · Jun 2010
Well, that did exactly what I wanted on the home page -- thanks! -- but it somehow seriously screwed up the rest of my site. Other pages are missing most of their content now.

??

http://patiastephens.com/wordpress/
  #6  
Old Jun 26, 2010, 03:48 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
My fault, I aways forget about the rest of the pages. In englist what you have now says'If you are on the front page and this is the first or second post display it" but you need 'or this is not the front page'
so change teh first line to
HTML Code:
<?php if ( (is_front_page() AND ($bfa_ata['postcount'] < 3)) OR (!is_front_page()) ) { ?>

Bookmarks

Tags
setting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show sticky posts in category pages c32v Atahualpa 3 Wordpress theme 4 Dec 12, 2010 08:37 AM
how to show just the titles of posts in the archive page ? drey Excerpts, Read more, Pagination 3 Aug 16, 2010 07:56 AM
[SOLVED] Show full text in archive and tag pages instead of summary rpfray Excerpts, Read more, Pagination 2 Mar 28, 2010 01:27 PM
Images in my category and archive pages? middlemountain Atahualpa 3 Wordpress theme 1 Apr 11, 2009 10:28 PM
[SOLVED] Link to list of posts in category or archive JKauffman Atahualpa 3 Wordpress theme 2 Feb 1, 2009 08:14 AM


All times are GMT -6. The time now is 04:31 AM.


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