This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search within the current category archive

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32658
    danilocubrovic05danilocubrovic05
    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 MarcinkoErnest 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.