Forums
-
- Forum
- Posts
-
- Installation
- 28,499
- Troubleshooting
- 62,631
- Themes
- 10,431
- Plugins
- 15,360
- Requests & Feedback
- 14,972
- Showcase
- 3,257
-
oops! sorry, I didn’t define what happens whe is_bbpress(), I just exclude it.
now it is working;
‘
<?php if (
is_page()
)
{ ?>
<!– one ad block –>
<?php } elseif (
is_single()
&& !is_bbpress()
)
{ ?>
<!– two ad blocks –>
<?php } elseif (is_bbpress()
)
{ ?>
<!– half ad block –>
<?php } else
{ ?>
<!– no ads –>
<?php } ?>
‘