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 » Excerpts, Read more, Pagination »

Display only one category page as excerpts


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 Nov 6, 2009, 04:04 PM
adelante
 
6 posts · May 2009
I need to display all category pages as full posts, except a pair of them which I need to display as excerpts.

I think it maybe somehow done using "Style & edit CENTER COLUMN", but dont know how.
  #2  
Old Nov 7, 2009, 07:56 AM
juggledad's Avatar
juggledad
 
20,010 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 control weither to display the full post or an excerpt at 'ATO->Configure EXCERPTS -> Posts or excerpts on CATEGORY pages?

If you want a couple category to display only the heading, you will need to add a 'if (!is_category('9') AND (!is_category('11')) around the bfa_post_bodycopy() at ATO->Style & edit CENTER COLUMN-> The LOOP
  #3  
Old Nov 8, 2009, 03:58 AM
adelante
 
6 posts · May 2009
but other (than theese two) categories I need to display as full posts, thats why I can't toggle "Posts or excerpts on CATEGORY pages?" to "excerpts only".
  #4  
Old Nov 8, 2009, 04:40 AM
juggledad's Avatar
juggledad
 
20,010 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
right, that's why you use the if statement.
'if (!is_category('9') AND (!is_category('11')) notice the "!'? In PHP that stands for NOT, so this statement says ' If NOT category 9 AND not category 11 then display the post body' so if it is category 12, than 'NOT category 9' is TRUE and 'not category 11' is TRUE so the post body is displayed.

There may be issues if a post is in both category 9 and 12....so if you have posts with both, you may need to change the if a bit.
  #5  
Old Nov 9, 2009, 11:36 AM
adelante
 
6 posts · May 2009
I've got the idea, but when I do what you say, I got no post_bodycopy at all.
What I have in my LOOP:

<?php if (!is_category('33') AND (!is_category('25')) { bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>');} ?>
  #6  
Old Nov 9, 2009, 03:21 PM
juggledad's Avatar
juggledad
 
20,010 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
I missed the need for the excerpt, so try this
HTML Code:
<?php if ((!is_category('33')) AND (!is_category('25')) ) { bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); }
else {		global $bfa_ata, $post;
		echo '<div class="post-bodycopy clearfix">'; 
		the_excerpt(); 
		echo '</div>'; }
?>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Display post title only of a category in a page ladylulu Page & Category Menu Bars 9 Mar 1, 2011 08:02 AM
Category Page Listing - How to display: Post Title only TotalBalance Excerpts, Read more, Pagination 16 Jan 27, 2010 12:22 PM
[SOLVED] Category Display yunusb2k Page & Category Menu Bars 4 Oct 5, 2009 04:12 PM
[SOLVED] category page list...display images too? joshimotions Excerpts, Read more, Pagination 1 Jun 21, 2009 09:56 AM
How to display page excerpts and images on sidebar (or, strange widget behaviour) reallylost Sidebars & Widgets 5 Jun 4, 2009 07:27 AM


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


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