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

Display only one category page as excerpts


  #1  
Old Nov 6, 2009, 05: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, 08:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 8, 2009, 04: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, 05:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 9, 2009, 12:36 PM
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, 04:21 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>'; }
?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



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 09:02 AM
Category Page Listing - How to display: Post Title only TotalBalance Excerpts, Read more, Pagination 16 Jan 27, 2010 01:22 PM
[SOLVED] Category Display yunusb2k Page & Category Menu Bars 4 Oct 5, 2009 05:12 PM
[SOLVED] category page list...display images too? joshimotions Excerpts, Read more, Pagination 1 Jun 21, 2009 10:56 AM
How to display page excerpts and images on sidebar (or, strange widget behaviour) reallylost Sidebars & Widgets 5 Jun 4, 2009 08:27 AM


All times are GMT -6. The time now is 03:43 AM.


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