Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] One post per page but several in category / archive possible? (http://forum.bytesforall.com/showthread.php?t=2992)

hospitalera Aug 15, 2009 06:50 AM

[SOLVED] One post per page but several in category / archive possible?
 
I have set up my blog in the following way:

Home Page: One, full, Post per Page, excerpts on Category, Archive and Tag pages.

Now only one excerpt shows up on those pages ;-( Is there any possibility to change the settings to:

Home Page: One, full, Post per Page.

10 excerpts on Category, Archive and Tag pages?

Thanks, SY

Flynn Aug 16, 2009 04:27 AM

You can put a query_posts code http://codex.wordpress.org/Template_Tags/query_posts into Style & edit CENTER COLUMN -> Content ABOVE the LOOP, wrapped into a conditional tag http://codex.wordpress.org/Conditional_Tags

<?php if ( is_front_page() ) {
query_posts('query_posts('showposts=5');
} ?>

hospitalera Aug 16, 2009 08:43 AM

Flynn, that sounds great but I have not the slightest idea what you actually mean. Would you mind to break it a bit down in bite size bits? Ich bin nicht mehr die Juengste ;-) SY

Flynn Aug 16, 2009 10:17 AM

Put this

<?php if ( is_front_page() ) {
query_posts($query_string . 'showposts=1');
} ?>

into the text area at Style & edit CENTER COLUMN -> Content ABOVE the LOOP

hospitalera Aug 16, 2009 10:28 AM

I checked both, the theme editor and the Atahualpa theme options and can't for the life of me see where "the text area at Style & edit CENTER COLUMN -> Content ABOVE the LOOP" is??? Am I blind? SY

Flynn Aug 16, 2009 10:30 AM

You probably have an older version of Atahualpa. Put the code into index.php, after <?php get_header(); ?>

hospitalera Aug 16, 2009 11:45 AM

I Did what you said, and yes you are right, I am using Atahualpa 3.2, and it did exactly the opposite of what I wanted. It displayed

Home Page: 5, full post per page, but still only one excerpt on Category, Archive and Tag pages?

I took it off again :( SY

Flynn Aug 16, 2009 12:32 PM

Use the last code I gave you, not the one before, and set Site Admin -> Reading -> "Blog pages show at most back" to 10

hospitalera Aug 16, 2009 01:46 PM

Brilliant, that worked! Thanks a lot! SY


All times are GMT -6. The time now is 08:02 PM.

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