Forums Forums Search & Filter Pro Show custom taxonomies in the results page

Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #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
    #216942

    Are you able to give me a sketch of what you want it to look like?

    Have you built a search page with a search on that I can see?

    Anonymous
    #216944

    I want this:

    I have this shortcodes in the list of projects page:

    Trevor
    #216970
    Anonymous
    #216990

    I 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 …

    Trevor
    #216994
    This reply has been marked as private.
    Anonymous
    #217010
    This reply has been marked as private.
    Trevor
    #217025
    This reply has been marked as private.
    Anonymous
    #217029

    Wow!

    Now works! A lot of thanks!

Viewing 9 posts - 1 through 9 (of 9 total)