Show Post Count of a Category
Show Post Count of a Category
Show Post Count of a Category
How do I get WordPress URL rewrites into Sitemap?
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
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
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
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
There are a few choices to go with this. I’ve actually gone through the same though process you have been. It would be easy if WordPress let you link posts or custom post types together but in lieu of that, the hackery of WordPress developers must occur! The solution I went with in the plugin … Read more
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
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
Well, it turns out it is indeed possible : ) I eventually found most of the answer in this post: Custom post types, taxonomies, and permalinks Then I got single-paintings.php to paginate within selected taxonomy with this plugin: Ambrosite Next/Previous Post Link Plus (which looks like it could be dropped into functions.php if you wanted … Read more