Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   [SOLVED] how to exclude post/page info items from certain pages? (http://forum.bytesforall.com/showthread.php?t=3014)

bcorrigan Aug 17, 2009 12:56 PM

[SOLVED] how to exclude post/page info items from certain pages?
 
I would like to turn off some post info items from certain pages. (%share-this% %wp-print%)

Is there a way to do that?

I'm using Wordpress 2.8.4 with Atahualpa 3.4.2.

My Web site is
HTML Code:

http://depts.washington.edu/ophthweb/
and the page I'd like to turn these off is:

http://depts.washington.edu/ophthweb/contact/

Thanks,

Bill

juggledad Aug 17, 2009 05:15 PM

First figure out the page id - your contact page id is 101
next go to ATO->Edit POST/PAGE INFO ITEMS->Edit POST/PAGE INFO ITEMS
take what ever you have there and surrond it with
HTML Code:

<?php if ( !is_page('101') ) {
        echo 'your stuff goes here';
        } ?>

so lets say you want the date to display on every page but the contact page (page 101) then you would code
HTML Code:

<?php if ( !is_page('101') ) {
        echo '%date('F jS, Y')%';
        } ?>


bcorrigan Aug 17, 2009 05:25 PM

Thanks Juggledad, just what I was looking for! -Bill


All times are GMT -6. The time now is 12:32 AM.

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