Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Removing Post Headline on Multi and Single Post Pages (http://forum.bytesforall.com/showthread.php?t=5177)

jen Jan 6, 2010 03:08 PM

[SOLVED] Removing Post Headline on Multi and Single Post Pages
 
WP 2.9.1, Ata 3.4.4 http://cg-inv.com/cgi/research-2/

I'm using the blog feature as a Library where PDFs are posted. I don't want the Headline to show in the Multi Posts or Single Posts pages. I found in the ATA>Style Edit Center Column>Content above Loop - I can delete <?php bfa_post_headline('<div class="post-headline">','</div>'); ?> and this removes the Post Headline from the Posts pages, but it also removes the title from the "Pages" pages which I don't want.

I don't know how to write code, so any help will be greatly appreciated.

Also, I'm using Display Widget Plugin from http://blog.strategy11.com/display-widgets/#comments, but it only works with widgets written in WordPress version 2.8 format. It will not work with two of my widgets. So additionally I want to use Widget Logic Plugin to fix the problem. I don't think I'm writing the conditional tags correctly. I'm using a static page for home page, so this is called front page i think. I want a widget to go on home page, blog page, category page and archive, so is this conditional tags together correct?

is_home() || is_front_page() || is_category() || is_archive()

Thanks for your help!!! :)

juggledad Jan 6, 2010 07:03 PM

change the code to
HTML Code:

<?php if (is_page()) { bfa_post_headline('<div class="post-headline">','</div>');} ?>
use 'or' in the other case
HTML Code:

[html]is_home() or is_front_page() or is_category() or is_archive()
[/html]

jen Jan 8, 2010 07:46 AM

Both suggestions worked, thanks! I made a donation!


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

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