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)
-   -   [SOLVED] How to put banner only in single post page? (http://forum.bytesforall.com/showthread.php?t=13680)

Innocent Apr 6, 2011 03:07 PM

[SOLVED] How to put banner only in single post page?
 
Hi!

I've managed to put banner after every third post in main blog page.

I did it through ATO Style and edit center column and there I added

<?php if ( $bfa_ata['postcount'] == 3 ) { ?>
...banner code...
<?php } ?>

So, there it says that if I put something like <?php if ( is_front_page() AND $bfa_ata['postcount'] == 3 ) { ?> it will show only on FP.

And what would it be for single post page?

Thanks!

juggledad Apr 6, 2011 03:39 PM

you will need to use one of the other conditional tags. Take a look at this http://codex.wordpress.org/Conditional_Tags

Innocent Apr 6, 2011 03:44 PM

Wow, I made it! Thanks a lot juggledad!


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

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