Forums › Forums › Search & Filter Pro › Add post IDs to returned results
Tagged: post__in, sf_edit_query_args
- This topic has 9 replies, 3 voices, and was last updated 7 years, 10 months ago by
Ross.
Viewing 9 posts - 1 through 9 (of 9 total)
-
Anonymous(Private) August 7, 2017 at 4:16 pm #124848
Hi Trevor.
I tryed using print_r and var_dump in functions.php but nothing is showing up on front-end. Like below:
function filter_function_name( $args, $sfid ) { //if search form ID = XX, the do something with this query if ( $sfid == 2817 ) { var_dump($args['post__in']); print_r($args['post__in']); } return $args; } add_filter( 'sf_edit_query_args', 'filter_function_name', 20, 200 );
I tryed using
var_dump($args['post__in']);
in my custom page template and it returns NULL. -
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)