Forums
-
- Forum
- Posts
-
- Installation
- 28,535
- Troubleshooting
- 62,777
- Themes
- 10,444
- Plugins
- 15,384
- Requests & Feedback
- 14,986
- 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 } ?>
‘