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

Generic taxonomy-term template page

Simply use taxonomy-{taxonomy}.php. Refer to the Template Hierarchy Codex entry regarding taxonomies. WordPress will look for taxonomy template files in the following order: taxonomy-{taxonomy}-{term}.php – If the taxonomy were sometax, and taxonomy’s slug were someterm WordPress would look for taxonomy-sometax-someterm.php. taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php taxonomy.php archive.php index.php … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)