Next and Previous links on a single taxonomy page only link to same term
This plugin will help you accomplish your goal: http://www.ambrosite.com/plugins/next-previous-post-link-plus-for-wordpress
This plugin will help you accomplish your goal: http://www.ambrosite.com/plugins/next-previous-post-link-plus-for-wordpress
Try $tax_query = array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘marque’, ‘terms’ => array( 70, 67 ), ‘field’ => ‘term_id’, ‘operator’ => ‘NOT IN’ ) ); //turn it into a WP_Tax_Query object… $tax_query = new WP_TaxQuery($tax_query); $query->set(“tax_query”, $tax_query);
// Add the new post_type and taxonomy add_action(‘init’, function(){ // Add a post_type named ‘testype’ register_post_type($postype=”testype”, $arguments = array( ‘name’ => $postype, ‘label’ => ‘Test’, ‘public’ => true, ‘exclude_from_search’ => true, ‘capability_type’ => ‘post’, ‘supports’ => array( ‘title’, ‘excerpt’, ‘editor’, ‘custom-fields’, ‘comments’, ), ‘show_in_nav_menus’ => false, ‘hierarchical’ => false, ‘publicly_queryable’ => true, ‘rewrite’ => array( … Read more
Even though this question is several months old, and you’ve probably committed to a route by now, I think this one deserves an answer for those who come across it down the road. It’s hard to make any good suggestions without information on what you’re going to do with the data or how you need … Read more
PHP has a function that does EXACTLY what you’re looking for, ucwords(). Leave the CSS capitalize on there, so that the users know it will be auto-capitalized, and then when you’re filtering the input (which you should be doing ANYWAYS, since it’s user input, run it through ucwords() right before database insertion.
I’ve dealt a similar requirement and so far the best way to do that is by using a custom field to save the related term id. That means for each ‘practice-area’ post type, there will be a ‘specialty-term-id’ custom field with the ‘specialty’ term id as value. Here the action hook to create the term … Read more
You might like to try Event Organiser (disclaimer: I’m the plug-in author). This plug-in handles event and venues management. Events are a custom post type, and venues are a custom taxonomy. All it would lack for your needs is the ‘artist’ – this could be handled by adding a metabox to an event which allows … Read more
There’s nothing in wordpress to automatically replace %tax_type% in the rewrite slug. You’d have to add some custom code to handle it like in this answer https://stackoverflow.com/questions/7723457/wordpress-custom-type-permalink-containing-taxonomy-slug
I think the best, most WordPress friendly solution is to use the default template hierarchy. If you’re using a custom post type and default categories, you first need to get the post type into the category (and tag) archive pages. This support thread does that. Now, you can see the portfolio items at yoursite.com/category/web-design, where … Read more
I don’t typically do what you are doing the way you are doing it – but the glaring thing to me is that your setting your tax query with the associative key of ‘tax_query1′, which as far as I know shouldn’t work. It should simply be called ‘tax_query’ Try this: $query1->set(‘tax_query’, $tax_query1 ); Hope that … Read more