I found this in the WP Docs:

Display posts that are in multiple categories. This shows posts that are in both categories 2 and 6: $query = new WP_Query( array( 'category__and' => array( 2, 6 ) ) );

Is there a way to replicate this type of search via a direct search URL in the browser, so I can just link to the results instead of having to create a php file?

I am not really a developer so I apologize if this question is rudimentary.

  • Welcome to WordPress Development. I hope you find the answer(s) you are looking for (I'm curious what the answer here is too). Our site is different from most - if you have not done so yet, consider checking out the tour and help center to find out how things work. – Matthew Brown aka Lord Matt Sep 12 '19 at 3:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.