Forums Forums Search & Filter Pro Dynamic result URL

Tagged: ,

  • This topic has 14 replies, 2 voices, and was last updated 6 years ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 15 total)
  • Anonymous
    #193698

    Hi,

    We are testing S&F with EDD and the Olam template.
    We want to integrate filter options on the category pages.

    Our result url is not a static page, example:
    https://www.dl-sounds.com/member/downloads/category/business-media/corporate

    S&F is a shortcode in the left widget.
    So now we get 404 pages if we change the category or any other filter because we can not set a result url.

    How can we fix this?
    Many thanks!

    Trevor
    #193702
    This reply has been marked as private.
    Anonymous
    #193706
    This reply has been marked as private.
    Trevor
    #193746

    Does your theme have ‘post type’ archive template pages for the EDD downloads Post Type? Or does it require you to build custom content pages instead, using EDD shortcodes or other code?

    Anonymous
    #193757

    Not sure what you mean but I think the first one.

    There’s a taxonomy-download-category.php template with ‘post_type’ => ‘download’.
    There’s also a archive-download.php template etc.

    We never build pages for this template.

    Trevor
    #193777

    I am not sure, but did you try the Display Results Method set to Post Type Archive, and if so, what happened?

    Anonymous
    #193797

    Yes, it is working but I have to disable Ajax in display results.

    Also if I add a reset button or click on “All Download Categories” it is going to a different page. I think the download archives. It should stay on the current page and list all downloads right?

    Thanks

    Trevor
    #193809

    Why did you have to disable Ajax? Is it because the Ajax Container might be wrong?

    Depending how you set up Post Type Archive forms, the reset button might take you to a different page.

    My preference is to create a ‘fake’ reset button directly below the form, that uses PHP to work out what the current page URL is and is actually a link back to the page (and thus with no query strings, and so effectively ‘reset’).

    Anonymous
    #193839

    If I enable Ajax it is simply not working.

    I tried again with Ajax selected and disabling all plugins etc. But no luck.

    Trevor
    #193843

    I think that is because the Ajax Container is set incorrectly, but you media player software might also be an issue stopping Ajax from working.

    If you look at this page structure:

    https://www.screencast.com/t/GygSJTlW4fCo

    The div with the bootstrap col-md-9 is the results container, but that class is used elsewhere, so it cannot be used for our Ajax Container setting. Are you able to edit the template file to add another class to that div (e.g. add search-results as another class) and then make the Ajax Container setting in the form be .search-results ?

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