Support Forums

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

Forums Forums Search & Filter Pro How do i work with url parameters

Viewing 8 posts - 1 through 8 (of 8 total)
  • Juan Duque
    #227609

    Hello, i want to build a slide panel for my site that has a taxonomy terms in hierarchy and when the user click one of the terms it will take the user to the search form with the current term, i built the menu getting the terms and the taxonomy slug to generate the urls

    the code that generates the list

    
          echo '<nav id="slideFilters"><ul>';
          foreach ($terms as $term) {
            if ($term->parent < 1) {
                echo '<li class="parent">';
                echo '<a href="'.get_site_url().'/?sfid=225&_sft_ads_category='.$term->name.'">';
                echo $term->name;
                echo '</a>';
                if (array_key_exists($term->term_id, $hierarchy)) {
                  echo '<ul>';
                  foreach ($hierarchy[$term->term_id] as $v) {
                    $child = get_term($v);
                    echo '<li>';
                    echo '<a href="'.get_site_url().'/?sfid=225&_sft_ads_category='.$child->slug.'">';
                    echo $child->name;
                    echo '</a>';
                    echo '</li>';
                  }
                  echo '</ul>';
                }
                echo '</li>';
            }
          }
          echo '</ul></nav>';
    

    so its something like this:

    siteURL?sfid=225&_sft_ads_category=desmontes

    The problem i get is that when i generate the search this way and click on the items to se the results, it doesnt get the number of post each taxonomy

    Trevor Moderator
    #227665

    Are you able to send me a live link/URL to your (search) page so I can take a look?

    You may need to guide me through the steps to take, and tell me what/where you wanted to see where the missing parts are? An annotated screenshot might be handy (you need to upload that to a file sharing site and share the link with me).

    Juan Duque
    #227768
    This reply has been marked as private.
    Juan Duque
    #227770
    This reply has been marked as private.
    Trevor Moderator
    #227830
    This reply has been marked as private.
    Trevor Moderator
    #227832
    This reply has been marked as private.
    Juan Duque
    #227888
    This reply has been marked as private.
    Trevor Moderator
    #227896

    Thanks for letting me know. I will close this thread for now.

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

The topic ‘How do i work with url parameters’ is closed to new replies.