How to display and use all existing tags at my write-post-at-frontend-panel?

try something like this: <?php $taxonomies = array( ‘wissen_tags’ ); $args = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => false ); $terms = get_terms($taxonomies,$args); if (count($terms) > 0): i = 0; foreach ($terms as $term): ?> <div class=”wissen_tag_list”> <input type=”radio” value=”<?php echo $term->term_id; ?>” name=”wissen_tags” class=”wissen_tag_list_ckb” <?php if ( $i == 0 ) … Read more

Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI

Collaborative efforts- For http://novice.dev/books just create custom post type and check rewrite options so that it adds end points. For http://novice.dev/books/book_categories/my_story_books, create custom taxonomy related with the post type and check the options for rewrite options. http://novice.dev/books/thirty-days-and-night will be automatically when above two are done.

How to show a tag archive of one post type only

I’ve worked out a solution to this. I hope this can help someone else. First add the following two functions to your functions.php (or plugin) file: function get_terms_by_post_type( $taxonomies, $post_types ) { global $wpdb; $query = $wpdb->prepare( “SELECT t.*, COUNT(*) from $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN … Read more

Add .html extension to custom post type taxonomies

I’ve tested your first attempt with using a rewrite rule it works add_action(‘init’, ‘add_html_ext_to_custom_post_type_taxonomies’); function add_html_ext_to_custom_post_type_taxonomies() { add_rewrite_rule(‘^product_cat/(.+)\.html’, ‘index.php?product_cat=$matches[1]’, ‘top’); } but you have _ not – had you noticed this as you give your example as www.mydomain.com/product-category/product-category-name.html If its not a mistake it might be you have another rule conflicting with it? and also … Read more

Query posts by custom post type and custom taxonomy

Pretty sure you can’t match multiple taxonomy terms in a query–Wordpress will only honor the first one and ignore the rest. Apparently, this is scheduled to be fixed in 3.1. In the meantime, there is a plugin that’ll fix you right up: http://scribu.net/wordpress/query-multiple-taxonomies EDIT: If you want a non-plugin solution, let me know. I’ve got … Read more

How to rewrite custom post type URL for multiple depths instead of one specific depth

After testing countless different structures i came up with this. It’s manual work specifying each category but gives me more control. If someone comes up with a better solution, please let me know. function mmp_rewrite_rules($rules) { //Product structure $newRules[‘product/(.+)/(.+)/(.+)/(.+)/?$’] = ‘index.php?products=$matches[4]’; //The above structure only works of the postname is the 5th uri segment //It’s … Read more

Remove base slug in CPT & CT, use CT in permalink

I copied your code as-is above, pasted it into the twentysixteen theme, and changed just the post type rewrite slug from review/%brand% to %brand%. This resulted in both the term archive and review posts having your desired URL structure and successfully displaying. Now the bad news is that the rewrite rules generated for the taxonomy … Read more

Many to Many Taxonomies or rewrite rules?

With reservations, sure, you can do what you want with this code: add_action(‘init’, ‘wpse_61376_rewrites’); function wpse_61376_rewrites() { add_rewrite_rule(‘^([^/]*)/([^/]*)/?$’,’index.php?category=$matches[1]&location=$matches[2]’,’top’); } Then go to Settings → Permalinks in wp-admin and click “Save Changes” to flush your rewrites and activate this rule. Reservations The problem about not having a prefix is that any permalink with two “sections” (site.com/section-1/section-2/) … Read more

Pros and cons of using [taxonomy name] in place of [category name]?

For the SEO part you might get better answers on the Pro Webmasters Stack Exchange. I will focus on the performance. From your example I assume your permalink structure was %category%/%postname%/. Because of the way WordPress parses the incoming URL, this will result in verbose page rules, which means that each page (not post) you … Read more