On my site, the following array parameters will work fine through the WordPress query_posts() function in an ajax request:
$arr_params= array
(
'post_type'=>'university',
'tax_query' => array(
array(
'taxonomy' => 'uni',
'field' => 'slug',
'terms' => 'stanford'
)
)
);
However is it possible to build a link using these arguments? I want to display a link on my posts, which when clicked, re-loads the WordPress loop using the above parameters.
I've tried
add_query_arg($arr_params,get_permalink());
but have not had any success
$arr_paramshas a couple of sub-arrays, and I can't figure out what correct query string ought to be.