Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Variable listing?


  #1  
Old Sep 5, 2010, 11:57 AM
atrocity
 
3 posts · Sep 2010
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!
  #2  
Old Sep 5, 2010, 01:37 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 5, 2010, 05:47 PM
atrocity
 
3 posts · Sep 2010
Yeah, but is that a variable in wordpress I should lookup, or is it something the theme sets so I can use it?
  #4  
Old Sep 5, 2010, 06:48 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Check out http://codex.wordpress.org/Conditional_Tags
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 5, 2010, 07:01 PM
atrocity
 
3 posts · Sep 2010
Wow, exactly what I needed. Thanks a ton!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Image to Bottom of Page with Variable Height epsymp Atahualpa 3 Wordpress theme 4 Aug 13, 2010 10:16 AM
Customizing the category listing page cgi Page & Category Menu Bars 0 Jul 14, 2010 01:08 AM
Integrating WP-PostRatings in Category listing pages cgi Center area post/pages 1 Jul 13, 2010 12:03 PM
Listing Authors in Sidebar jdittert Sidebars & Widgets 4 Jun 26, 2009 12:24 AM
I have to versions of Pages listing frankhamm Atahualpa 3 Wordpress theme 2 Apr 1, 2009 01:44 PM


All times are GMT -6. The time now is 10:35 AM.


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