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?
December 5, 2016 at 9:00 pm
#11132
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