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

Reply To: Taxonomy archive search

#18120
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Daniel,

The get_queried_object_id() is not going to work in that context, as within an ajax request there is no information about the page/post ID nor the WP_Query where the request is originated from.

I think the only solution is to use an additional snippet to store the queried object ID as an input, that is then passed as an option, then use that as the argument in a separate filter: