Forums
-
- Forum
- Posts
-
- Installation
- 26,468
- Troubleshooting
- 56,827
- Themes
- 9,875
- Plugins
- 14,459
- Requests & Feedback
- 14,165
- Showcase
- 3,222
-
Well, more or less this is working but now bbpress goes to the last “else” statement and I don’t know why;
‘
<?php if ( is_page() )
{ ?>
<!– one ad block –>
<?php } elseif ( is_single() && !is_bbpress() )
{ ?>
<!– two ad blocks –>
<?php } else
{ ?>
<!– no ads –>
<?php } ?>
‘
I haven’t try your third option yet because I didn’t understand quite enough.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS