Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Ansense and other code with php conditional in byline


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jul 19, 2011, 03:56 AM
mariusanhalt
 
21 posts · Nov 2010
Ansense and other code with php conditional in byline

I am trying to learn these php conditional strings/codes, espcially after the newer Atahualpa, where you can't add stuff (like adsende) via the ATO.

As for now I need adsense to be in the Byline.

So far I've come up with:

I need this adsense code:
<script>blabla adsense blabla</script>

To be in this part in index.php
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>

Reading this forum over and over lets me know that I need something called
php conditional
And after looking there I think that i might be this one:
is_single() or <?php is_single($post); ?>

But the thing is, I just cant seem to figure out where/how in
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
I should put both the adsense-script and the php conditional, I have tried a little here and there, but I get error when trying to load the page afterwards.

Can anyone tell me how the byline string should look like with the php conditional and the adsense script correctly inserted??

And from there I hope I can experiment on my own, with other kind of scripts and places in posts, I belive they work the same way.

Thanks
 

Bookmarks

Tags
adsense, byline, conditional, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help me change this code<title><?php bloginfo('name'); ?><?php wp_title(); ?></ti tobywinn Header configuration & styling 1 Nov 18, 2011 11:51 AM
php code not run OlliM1810 Center area post/pages 1 May 18, 2011 10:09 AM
Conditional category styling = PHP bender57 Center area post/pages 1 Dec 17, 2010 07:09 PM
Conditional PHP issue MyJourneytoMillions Center area post/pages 6 Feb 10, 2010 03:11 PM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM


All times are GMT -6. The time now is 06:28 PM.


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