Combining Query Strings

Hi there dear Pro’s,

Currently, I am playing around with the possibilities of loopers & providers and the search layout (builder).
Actually, I want to query the output for that it displays only results matching title or category(s) of a custom post type.

… but I am stuck: I can’t find a way to combine two query strings.

post_type=CUSTUMPOSTTYPE&s={{dc:query:search_query}}
(output results matching title)

and (better OR :wink: )

post_type= CUSTUMPOSTTYPE&category_name={{dc:query:search_query}}
(output results matching category)

Could you point me in the right direction?

// And as +1, how would I add an ACF to the string?
(output results matching advanced_custom_field)

I’d really appreciate some guidance! :innocent:
… and I’m certain this could help other too!

Best
Pavlo

Hello Pavlo,

Thanks for writing in! For the search and any archive layouts, you do not need to use a Looper Provider. You will just use the default WordPress Loop. All you need is the Looper Consumer when creating a search or any archive layout. If you want to modify the search result, you will have to code something in your child theme’s function.php file that will tweak the search results.

Kindly check out this article:

Be advised that custom coding is beyond the scope of our support. You may need to contact a 3rd party developer if you are not familiar with coding. You must also make sure that custom coding still work after any WP, theme or plugin updates or that it does not create any issues with your site.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.