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)
-   -   Variable listing? (http://forum.bytesforall.com/showthread.php?t=9421)

atrocity Sep 5, 2010 11:57 AM

Variable listing?
 
So I've added a simple option to only show Adsense code on non-front-page pages using the following line:
<?php if ( !is_front_page() AND $bfa_ata['postcount'] == 1 ) { ?>

Now, my question is, how do I get this to NOT display on static pages like "About" and such? Is there a list somewhere with $bfa_ata variables I can choose from? Thanks guys!

juggledad Sep 5, 2010 01:37 PM

You need to add more conditions to your if statement like a 'and it is not a page'
note: that is not the proper syntax, just the English equivalant

atrocity Sep 5, 2010 05:47 PM

Yeah, but is that a variable in wordpress I should lookup, or is it something the theme sets so I can use it?

juggledad Sep 5, 2010 06:48 PM

Check out http://codex.wordpress.org/Conditional_Tags

atrocity Sep 5, 2010 07:01 PM

Wow, exactly what I needed. Thanks a ton!


All times are GMT -6. The time now is 09:33 PM.

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