[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 |
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'); } ?> |
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
|
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 |
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
|
You probably have an older version of Atahualpa. Put the code into index.php, after <?php get_header(); ?>
|
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 |
Use the last code I gave you, not the one before, and set Site Admin -> Reading -> "Blog pages show at most back" to 10
|
Brilliant, that worked! Thanks a lot! SY
|
All times are GMT -6. The time now is 01:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.