Search within the current category archive

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search within the current category archive

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32658
    danilocubrovic05
    danilocubrovic05
    Participant

    I need asp to search inside category.
    We are using elementor archive page with asp search on it.
    Search is working but I can not manage to search only in that category.
    I have tried solution from
    https://knowledgebase.ajaxsearchpro.com/miscellaneous/post-types/search-only-within-the-current-category-or-any-taxonomy-archive
    but I do not see any changes after applying this code snippet into functions.php

    Example pages on our site:
    …/category/statisticki-podaci/indeksi-cena-na-malo-2000-2010/
    …/category/statisticki-podaci/indeksi-potrosackih-cena/

    #32665
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Well that code may not work on elementor widgets, but the main reason I believe is, that you are trying to filter elementor archive widgets in the first place. Filtering archive pages is not supported by default (only the regular posts and products) widgets. It may work on some installations, but in most cases it is problematic.

    If you want, I can take a look via FTP access, but I can not guarantee anything there.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.