Forums
-
- Forum
- Posts
-
- Installation
- 28,381
- Troubleshooting
- 62,253
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,908
- Showcase
- 3,252
-
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 } ?>
‘
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS