Forums Forums Search & Filter Pro having issues with custom display results.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #263489

    I’m trying to implement a search form for a custom template and here is a issue I’m running into:
    Lets say I have a custom post type directory
    Mysite.com/mydirectory
    If I place the search form shortcode on any page (other than mydirectory) and direct it to show result using Results URL Mysite.com/mydirectory it works just fine.
    But if I put the shortcode on the page itself, it does nothing.

    Does this look correct?
    php code

    Trevor
    #263490

    I can’t see anything wrong with it, but you could add the argument to the $args2 directly, like this:

    'search_filter_id' => 8743,

    Anonymous
    #263549

    for whatever reason I cannot use the same page that my search form is on, also as “Results URL”

    So I created 2 identical search forms with only different ids and 2 identical archive template pages (with only the search form inserted being different ID) pointing to each other as result url … that works, but I’m not sure if it makes any sense

    https://kasinoforum.com/newdir result URL> https://kasinoforum.com/casinos and vice versa

    Bad idea?

    Trevor
    #263597

    That doesn’t make any sense, no. It has to be a coding error somewhere in the template.

    Anonymous
    #263760

    resolved, it was indeed a problem with the template

    Trevor
    #263763

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

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