Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   How to remove body text from category view? (http://forum.bytesforall.com/showthread.php?t=4228)

thesis Nov 5, 2009 11:03 AM

How to remove body text from category view?
 
Hello,

Is there any way to remove the body copy from a category view? See the example here:

http://twh.net.au/pp/?cat=6

What I'm trying to achieve is, that when you are looking at a category like in the exaple, the list doesn't display the body copy/exerpt. So you would just have the date, headline, tags and icons, thats it.

Hopefully this makes sense.

Thanks for any advice about whether this is possible :)

juggledad Nov 5, 2009 12:33 PM

at ATO->Style & edit CENTER COLUMN->The LOOP, you could put some php code arround
HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
so it wouldn't display on the categories you want.

thesis Nov 6, 2009 03:40 AM

Hi there,

Could you possibly give me some more details about what/where to change?

Thanks for your assistance..

oh it also seems like you might have pasted the wrong thing in the HTML code box...? (edit: cancel that, its displaying ok now)

I can see the line you described in The LOOP, but how should I modify it to get the result I'm after?

waded1 Nov 20, 2009 10:38 AM

I was also wondering how to accomplish this. I have Categories that have many posts. I want to click on the Category and have only the post headings show up in the Center column.

I have been able to find the line
HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
but I'm not sure where to go from there.

Thanks in advance for the assistance.

juggledad Nov 21, 2009 06:31 AM

thesis: if the category ID is '6' then the code would be

HTML Code:

<?php if (!is_category('9')) { bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); } ?>
You may have to add some more logic so that if the user clicks on the title it WILL show the full post on a single page. something like

HTML Code:

<?php if (!is_category('9') AND (!is_single()) { bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); } ?>
note: I haven't tested eithor of these


All times are GMT -6. The time now is 09:50 AM.

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