Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,269
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,924
- 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.