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 »

Category with only one post as single


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 Feb 9, 2011, 03:52 AM
tom10
 
3 posts · Feb 2011
Hey,

some of my categories have one post only.
How could it be achieved that such categories show these articles in the single-post style with its comments?

Thanks for your answers!
  #2  
Old Feb 9, 2011, 04:19 AM
juggledad's Avatar
juggledad
 
19,994 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
if you are saying that you want to display categories so that
1) if there is only one post in the category, you display the full post and comments
2) if there are more than one post in the category, display them all as either full posts or excerpts without comments

You are going to have to (1) look for a plugin that will do this or (2) dig into the code and add the logic that would do this.

Let us know what you come up with so other users can gain by your answer.
  #3  
Old Feb 9, 2011, 05:16 AM
tom10
 
3 posts · Feb 2011
This is exactly the way I want to display the posts.
I couldnīt find a plugin, yet. Maybe someone else knows?!
  #4  
Old Feb 9, 2011, 01:26 PM
tom10
 
3 posts · Feb 2011
Found this http://forum.wordpress-deutschland.o...kategorie.html

Quote:
<?php
/**
***@package*WordPress
***@subpackage*Default_Theme
**/
if(is_category()*&&*($wp_query->post_count)==1)*:
include*(TEMPLATEPATH*.*'/single.php');*
else:*
get_header();
?>
But i don't Know how to add it in this theme.
  #5  
Old Feb 9, 2011, 06:44 PM
juggledad's Avatar
juggledad
 
19,994 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
1) that thread looks to be in german
2) atahualpa does not have a 'single.php'
  #6  
Old Mar 2, 2011, 02:07 AM
rajeshjsl
 
9 posts · Feb 2011
any idead how to do this , me too want this ..

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem similar to "Recent posts of same category, on single post pages" sikedestroya Sidebars & Widgets 0 Aug 20, 2010 05:44 AM
Permalink in single post and single page anup Center area post/pages 0 Jul 15, 2010 09:46 AM
[SOLVED] Recent posts of same category, on single post pages GeoParadise Atahualpa 3 Wordpress theme 10 Apr 19, 2010 08:54 AM
Problem implementing "How to show single post special category on static home page??" mkny13 Post-Kicker, -Byline & -Footer 6 May 5, 2009 05:21 AM
[SOLVED] How to show single post special category on static home page?? Shepherd Jim Post-Kicker, -Byline & -Footer 5 Mar 19, 2009 07:42 AM


All times are GMT -6. The time now is 07:33 PM.


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