Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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,765 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,765 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



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 05:29 PM.


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