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 » Center area post/pages »

[SOLVED] Show a widget or PHP insert every 2 posts?


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

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 17, 2010, 11:33 PM
mptorr
 
13 posts · Aug 2009
[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
  #2  
Old May 18, 2010, 07:13 AM
juggledad's Avatar
juggledad
 
22,169 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old May 18, 2010, 04:01 PM
mptorr
 
13 posts · Aug 2009
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

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
how to insert php code into widget or sidebar Stingraynut Header configuration & styling 1 Apr 6, 2010 08:25 PM
How do I insert a line to show under Widget Title GreenEyedMonst Sidebars & Widgets 1 Jan 17, 2010 05:50 AM
How to insert php code into Byline JakeThePeg Post-Kicker, -Byline & -Footer 1 Aug 27, 2009 06:16 PM
Need future posts to show up in calendar widget bluedogcreative Sidebars & Widgets 4 Jul 12, 2009 01:46 PM


All times are GMT -6. The time now is 02:06 AM.


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