‘category__and’ for custom taxonomy?

I think this question can cause a misunderstanding. You say: I want to retrieve all the posts that have custom taxonomies ‘taxonomy-1’ and ‘taxonomy-2’ but do you want post that have both taxonomy-1 and taxonomy-2 and taxonomy-3 is irrilevant? $args = array( ‘post_type’ => ‘post-type-x’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘taxonomy-1’, … Read more

Custom query variable – get wordpress to redirect to nice permalink url

I figured out a solution myself. No javascript required, only another template function. URL building done manually. The idea is to use the hook ‘template_redirect’, check if the requested page is the corresponding store archive page, then check for $_REQUEST vars there and build a new URL. Finally redirect to this URL. function my_template_redirect() { … Read more

Paginated Taxonomy Term Archive including one post per term

As discussed in chat and as @Rarst already told you, there’s no default WordPress way to accomplish Archive of multiple taxonomies and all their terms In fact there’s no way to accomplish Archive of single taxonomy and all its terms in WordPress. Simply because WordPress doesn’t do that – without custom SQL queries. But there’re … Read more