Reply To: How to pass/get the ID of the page where the search is placed?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to pass/get the ID of the page where the search is placed? Reply To: How to pass/get the ID of the page where the search is placed?

#11132
onlinesid
onlinesid
Participant

Hi,

The problem is that get_the_ID() does not work from asp_query_args filter. It is always returning false. This is because it’s called via ajax so it lost the ID. That’s why I think it would be a massive improvement to your product if the post ID can be passed to the $args in asp_query_args filter.

Kind regards,
Sid