Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Display the taxonomy/filter of a post as a class in the results template › Reply To: Display the taxonomy/filter of a post as a class in the results template
January 12, 2021 at 2:20 pm
#31081
Keymaster
In your above code there is an error, this:
<?php get_post_meta('_taxonomy_resource_type', $r->id); ?>
..an echo or print is missing, and a the data is not singular:
<?php echo get_post_meta('_taxonomy_resource_type', $r->id, true); ?>