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 »

Category with only one post as single


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) that thread looks to be in german
2) atahualpa does not have a 'single.php'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #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 03:31 AM.


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