Hi @tanjimayesmin,
OK, here you go!
Basic detection:
$listing = wpbdp_get_listing( $listing_id );
$plan = null;
if( $listing ) {
$plan = $listing->get_fee_plan();
}
if( $plan && 0 < $plan->fee_price ) {
// do your magic
}
to search within a group of fees:
$listing = wpbdp_get_listing( $listing_id );
$plan = null;
if( $listing ) {
$plan = $listing->get_fee_plan();
}
if( $plan && in_array( $plan->fee_id, array( 1, 4, 9 ) ) ) {
// do your magic
}
or a specific fee:
$listing = wpbdp_get_listing( $listing_id );
$plan = null;
if( $listing ) {
$plan = $listing->get_fee_plan();
}
if( $plan && 9 === $plan->fee_id ) {
// do your magic
}
This works both in single.tpl.php and single_content.tpl.php.
Try that and let me know if you run into more issues.