Re: If BP is enable conditional tag
You are right, I should have explained.
I am making theme both compatible for WP and BP by using something like this
<?php if (get_option(‘gangmei_switch_platform’) == ‘buddypress’) { ?>
<?php include(TEMPLATEPATH . ‘/_inc/member-search.php’); ?>
<?php } else { include(TEMPLATEPATH . ‘/_inc/search-form.php’); } ?>
This work 100%
( If buddypress is enable from theme option page, it will show the buddypress member search form
else it will show the wordpress search form)
But i want something like I said.