Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro displaying search terms without labels

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

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

    eli Shvrzman
    #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 Moderator
    #46963

    Neither do I.

    eli Shvrzman
    #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 Moderator
    #46965

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

    eli Shvrzman
    #46966

    yes sure. hoping it will help others as well.

    Trevor Moderator
    #46967

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

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

The topic ‘displaying search terms without labels’ is closed to new replies.