Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › limit search › Reply To: limit search
October 6, 2022 at 3:36 pm
#39542
Participant
Wow, thats great. Please send me your paypal for a “thank you”. 🙂
One question i have.
How to have this please:
if ( $id == 3 ) {
$args[‘post_parent’] = array(11748) OR customfield = abc;
} else if ( $id == 12 ) {
$args[‘post_parent’] = array(3239) OR customfield = xyz;
So search widget with id 3 need to fit post parent id 11748 OR customfield abc.
And widget id 12 need to fit post parent id 3239 OR customfield = xyz.
Some posts are a customfield and some not.
Do you can help us to solve that issue?