Forums › Forums › Search & Filter Pro › Show custom taxonomies in the results page
Tagged: Taxonomies
- This topic has 8 replies, 2 voices, and was last updated 5 years, 4 months ago by Anonymous.
-
Anonymous(Private) July 22, 2019 at 4:23 pm #216935
Hi.
Imm creating a list of projects with several taxonomies, and I would like that in the results page, these taxonomies appear below of the title of the project.
It is the same as it appears in the demo of the plugin, where in the list of movies appear the reviews and the genre.
How can I do that? As much as I read the documentation I can not find it …
Thanks!
Trevor(Private) July 23, 2019 at 6:29 am #216970I think your question is much the same as this one:
https://support.searchandfilter.com/forums/topic/problem-with-the-taxonomies-i-made/
Anonymous(Private) July 23, 2019 at 9:29 am #216990I have seen this topic and made the same changes, but without result.
I copied the results.php file in the theme folder, and changed the name of the file to its ID: 754.php
I have added the codes in the file, but the taxonomy “subgroup” is not shown:
<p><br /><?php the_excerpt(); ?></p> <?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?> <?php $taxonomy_terms = wp_get_post_terms(get_the_ID(),'subgrupo'); foreach($taxonomy_terms as $term){ $terms[] = $term->name; } if(!empty($terms)) { echo join(", ", $terms); unset ($terms); } ?> <p><?php the_category(); ?></p> <p><?php the_tags(); ?></p> <p><small><?php the_date(); ?></small></p> </div>
I’m doing something wrong …
-
AuthorPosts