Vote badge showing only for custum shared coupon types
I am trying to display voting badge when the coupon type is chosen. Is it faster to do this for 3,000-5,000 posts or is it better to create a custom post type?
The overall goal is to only show the customer voting object when a specific type of coupon is created with the share button. This will allow me to create two different pages. One page showing coupons that customers cannot vote on, and the other showing coupons submitted by customers.
I planned on some how using permissions to prevent registered customers from choosing specific coupon types.
Am I thinking about this all wrong? Maybe there is a better way?
layout question.png
Am I using the correct terminology here?
<?php
if (is_object_in_taxonomy( 'Coupon Types', 'Coupon Code – User Added' )) {
echo '<?php clpr_vote_box_badge( $post->ID ); ?>
' ;
}
else if (is_object_in_taxonomy( 'Coupon Types', 'Printable Coupon – User Added' )) {
echo '<?php clpr_vote_box_badge( $post->ID ); ?>
' ;
}
else {
echo 'nothing' ;
}
?>
I found this post, but it doesn't match my scenario exactly:
Wordpress conditional statements for taxonomy, term, inside a loop not working
Thanks!