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

Reply To: limit search

#39542
23volt23volt
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?