Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Mariusz Wajda
0 points
Beginner
Hi
I try to do something like that:
in the loop “if post have this taxonomy(listing category) then do my code ” i used codes below in diferent configurations but does not work:
[code title=””]<?php if ( wp_get_post_terms( $post->ID, THEME_TAXONOMY) == (‘term=144’)) { ?>
<span>my code</span>
<?php } ?>[/code]
Hi
I try to do something like that:
in the loop “if post have this taxonomy(listing category) then do my code ” i used codes below in diferent configurations but does not work:
[code title=””]<?php if ( wp_get_post_terms( $post->ID, THEME_TAXONOMY) == (‘term=144’)) { ?>
<span>my code</span>
<?php } ?>[/code]
or
[code title=””]<?php if ( wp_get_post_terms( $post->ID, THEME_TAXONOMY) == ‘the listing category slug or ID’) { ?>
<span>my code</span>
<?php } ?>[/code]
Please, can anyone give me some advice ???
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now