This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Multiple Custom Query Strings?


Thanks Jason this helps. I am NEARLY there using the second option but please tell me I’m missing something simple. Basically I need to filter the post grid so that I can return things with a certain tag, and then order on title and, finally, orderby ASC.

I can get it to work with the order and order by but I don’t know how to get it to also cut out everything that ISN’T the tag I want. This is what I have pasted into functions.php right now–what am I doing wrong? I must be putting that tag=EM line in wrong?

Custom query for post lists/post grids
function my_custom_posts_query( $query, $args ){
if( $args[‘query’] == ‘EM_order’ ){
$query = array(
‘orderby’ => ‘title’,
‘order’ => ‘ASC’,
return $query;
add_filter( ‘themeblvd_posts_args’, ‘my_custom_posts_query’, 10, 2 );