Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: wp-bb, is it possible to define conditional tags for bbpress?

@ganzua

Member

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 } ?>

Skip to toolbar