Show all post of taxonomy on base taxonomy URL

Redid this. It should now work for any and all post_types: <?php add_action(‘init’, ‘setup_events_rewrite’); //Gives you a new query var and sets up a rewrite rule that makes events/ work function setup_events_rewrite() { //create a query var add_rewrite_tag(‘%tax_archive%’,'([^/]+)’); //set new query vart with tax of choiice add_rewrite_rule( ‘events/?$’, ‘index.php?tax_archive=events’, ‘top’ ); } add_filter(‘request’, ‘setup_events_request’); //sets … Read more

Translating a custom taxonomy

I haven’t tried this myself but theoretically it should work. It just requires some hacking. First of all, this involves using qTranslate. If you don’t want a multilingual site, you can always fill only the default language. Then to force display only the default language on the post pages, you will need to modify the … Read more

one term two taxonomy’s?

Had to write a method to do it. Here is the method… hope it helps someone else 😉 syntax: copy_terms($term->term_id, “taxonomy1”, “taxonomy2”, 0); //will copy to root of destination /** * Copy a term and its descendants from one taxonomy to another. * Both taxonomies have to be hierarchical. Will copy across * posts as … Read more

Show preset taxonomy description

Assumptions: institute is the taxonomy course is the term only one course is assigned per post you want to display the course description? If so, the simplest way would be to use get_the_terms(). If your taxonomy is institute, you can do something like the following: <?php // globalize $post global $post; // Get the course … Read more

Can you filter wp_dropdown_categories with terms meta?

There is no direct way, hence you’ll have to hack it. wp_list_categories calls get_terms internally. There’s a filter terms_clauses which will allow you to modify the WHERE conditions for getting the terms. Here’s how you can use it: <?php add_filter(‘terms_clauses’, ‘term_filter’, ”, 1); function term_filter($pieces){ //echo “<pre>”; //print_r($pieces); //echo “</pre>”; //You can change the entire … Read more

How do I list the pages of a custom taxonomy?

To answer my question: You can use the loop to query only posts based on a taxonomy & terms : query_posts(‘taxonomy’=’term’); & then run the loop: if ( have_posts() ) : while ( have_posts() ) : the_post(); echo ‘<h6>’; ?> <a href=”https://wordpress.stackexchange.com/questions/36592/<?php the_permalink(); ?>”><?php the_title(); ?></a> <?php echo ‘</h6>’; the_date(); the_excerpt();

Taxonomy template shows only 10 posts

Sorry – this is probably an obvious answer but without seeing your query_posts query it’s hard to say if you’ve tried this or not. As you’re altering the main query on the page query_posts should be the right tool for the job. Something like the following query should work: <?php query_posts( ‘posts_per_page=100’ ); ?> <?php … Read more