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] Show a widget or PHP insert every 2 posts? (http://forum.bytesforall.com/showthread.php?t=7164)

mptorr May 18, 2010 12:33 AM

[SOLVED] Show a widget or PHP insert every 2 posts?
 
Is there a way I can do this?

For example insert a call for a widget in center column of homepage via a php string -- but show that widget content NOT under every single post on the homepage -- but every 2 or 3 posts?

WP 2.9.2
Ata 3.4.6

juggledad May 18, 2010 08:13 AM

you could go to ATO->Style & edit CENTER COLUMN->The LOOP and add some php logic to compute the post count then displaythe AD when you want.

mptorr May 18, 2010 05:01 PM

Thx JD - that worked very nicely -- and thx to Atahualpa for being such a great theme allowing this customization.
I used

<?php if ( is_front_page() AND $bfa_ata['postcount'] == 2 ) { ?>
my widget here
<?php } ?>

to make this work


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

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