Forums Forums Search & Filter Pro displaying search terms without labels

Viewing 7 posts - 11 through 17 (of 17 total)
  • Trevor
    #46961

    There is probably a way, but this is way beyond what is included in normal technical support, and beyond my abilities.

    Anonymous
    #46962

    o.k thanks.
    but i don’t understand why is it so complicated. i can display each one easily but can’t get it to display the name without the label

    Trevor
    #46963

    Neither do I.

    Anonymous
    #46964

    got it! here is the solution.

    <?php
    	             global $wp_query;
    	             $sf_current_query = $wp_query->query_vars['_sft_position']; ?>
    						   <?php if (isset ($sf_current_query))  :  ?>
    						<?php 
                   echo '<span class="results-term">' . $sf_current_query . '</span>';
    							 
    							?> 
    						   <?php endif; ?>

    the vars can be changed to any search term you have.

    Trevor
    #46965

    Cool. Can I close thread, as you appear to have resolved it?

    Anonymous
    #46966

    yes sure. hoping it will help others as well.

    Trevor
    #46967

    I am sure that it will 🙂 I will close this now.

Viewing 7 posts - 11 through 17 (of 17 total)