Forums
-
- Forum
- Posts
-
- Installation
- 28,034
- Troubleshooting
- 61,259
- Themes
- 10,269
- Plugins
- 15,090
- Requests & Feedback
- 14,727
- Showcase
- 3,245
-
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