Forums Forums Search & Filter Pro Current menu item

Viewing 10 posts - 1 through 10 (of 17 total)
  • Trevor
    #201314

    Can you give me an example of a page correct, and that same page with query strings, as two URLs?

    Anonymous
    #201333

    Oh, wow. I found my mistake. It works. It just didn’t work because my menu item is directed to a url that already has a parameter defined. That leads me to another question:

    I need the results to be empty when I enter the page. Thats why I directed the menu item to a nonexisting category, like this:
    http://khuf.eu/meine-wege/?_sft_category=leer

    Is there any way to have an empty results page, when you first enter it?

    right now it shows all results:
    http://khuf.eu/meine-wege/

    i dont want that.

    best regards! Johannes

    Trevor
    #201347

    Yes, that is totally possible. You need to edit the results.php template file you are using, like this:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(36613)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      echo '<div>Nothing to see here folks!</div>'; 
    } else {
      // your current results.php code here
    }
    Anonymous
    #201511

    sounds great, but I don’t know where to put it. i use “post grid” – but i can’t find the php i have to put this in. :/

    Anonymous
    #201513
    Anonymous
    #201515

    😀 i solved that last one by simply editing the menu once again. url is the sae, but wordpress is suddenly satisfied.
    sorry for the back and forth.

    Trevor
    #201567

    Is this all resolved now?

    Anonymous
    #201573

    I still dont know where to put the code you gave me.
    i use “post grid” – but i can’t find the php i have to put this in. :/

    Trevor
    #201581

    The form on this page:

    http://khuf.eu/meine-wege/

    I using our Shortcode display method (as set on the Display Results settings tab in the form design. It is not set up for Post Grid?

    Anonymous
    #201618

    I’ve set it up like this. Works fine. Only with the problem that it shows all posts at first load. I need it empty

    [searchandfilter id=”36613″ action=”filter_next_query”]
    [post_grid id=”40757″]

    If I understand correctly I have to put your code in a results.php
    I can’t find such php in the “post-grid” – plug-ins phps
    Also not in the Standart WordPress directory…

Viewing 10 posts - 1 through 10 (of 17 total)