Forums
-
- Forum
- Posts
-
- Installation
- 28,381
- Troubleshooting
- 62,249
- Themes
- 10,390
- Plugins
- 15,309
- Requests & Feedback
- 14,897
- Showcase
- 3,252
-
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