Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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?


  #1  
Old Jun 25, 2010, 12:05 AM
cowgrrrl
 
29 posts · Jun 2010
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, 04:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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 <
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 25, 2010, 07: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, 10:38 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 26, 2010, 12:13 AM
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, 04:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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()) ) { ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 26, 2010, 12:10 PM
cowgrrrl
 
29 posts · Jun 2010
That worked! Thank you!

Bookmarks

Tags
setting



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


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


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