Custom Taxonomy list: how to make “choose from most used” default to open, checklist

The default UI view for a hierarchical custom taxonomy is a series of checkboxes. It sounds like wine taxonomies have a one-to-many relationship so you should be set. If you are registering your taxonomy using PHP add hierarchical => true to your configuration options. register_taxonomy( ‘xxx’, ‘post’, array( … **’hierarchical’ => true** , …) ); … Read more

Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?

Hi @ntechi: Here’s a function I wrote which I named the_taxonomy_dropdown() to give you what I think you are looking for. function the_taxonomy_dropdown($taxonomy) { $id = “{$taxonomy}-dropdown”; $js =<<<SCRIPT <script type=”text/javascript”> jQuery(document).ready(function($){ $(“select#{$id}”).change(function(){ window.location.href = $(this).val(); }); }); </script> SCRIPT; echo $js; $terms = get_terms($taxonomy); echo “<select name=\”{$id}\” id=\”{$id}\”>”; foreach($terms as $term) { echo ‘<option … Read more

How to prevent posts duplicating when viewing a custom taxonomy term

The code you posted looks generally okay to me but as far as I know the rewrite parameter must be of type array or string, not bool: register_taxonomy( ‘type’, array(‘venue’), array( ‘label’ => ‘Types’, ‘singular_label’ => ‘Type’, ‘rewrite’ => array(‘slug’ => ‘type’, ‘hierarchical’ => true), ‘hierarchical’ => true, ) ); Probably this is of help. … Read more

Custom post types with custom directories

Is something like this possible without running MultiSite (which I believe would force the blog to live at blog.domain.com)? Not quite. There are two basic modes multisite installation can operate in: sub-domains ( site.domain.com ) sub-directories ( domain.com/site ) As far as I remember in subdirectory installation main blog is also forced to have /blog/ … Read more

Display types of posts in edit.php instead of All, Published, Scheduled and Draft

Why don’t you just take post_formats (will be introduced with wp 3.1 in near future). These contain asides (small posts), chat, links, video, audio and so on. In general you just got a new meta-box that allows you to select the format when posting. Behind the scenes post formats are just predefined custom taxonomies bundled … Read more

Why is my custom loop not filtering correctly nor paginating?

To fix your “query filters” change // Set defaults in nothing entered: if(!isset($_POST[‘showfilter’])) { $ft_args=”post_type=ftevent&”; // $ft_args .= ‘posts_per_page=1&’; SHOW ALL $ft_args .= ‘paged=’ . $paged . ‘&’; $ft_args .= $osu_datecompare . ‘&’; $ft_args .= ‘orderby=meta_value&order=ASC’; } else { // Filter query with multiple taxonomies and paginate results $ft_args=”post_type=ftevent&”; $ft_args .= ‘posts_per_page=2&’; $ft_args .= ‘paged=’ … Read more