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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745167093a4614699.html
评论列表(0条)