custom taxonomy archive permalink shows 404 error
I solved this issue by making sure that the calls to register my taxonomies were placed before the calls to registering my custom post types. Weird but it works!
I solved this issue by making sure that the calls to register my taxonomies were placed before the calls to registering my custom post types. Weird but it works!
Here is what I came up with, seems to work: add_filter( ‘pre_post_tags_input’, ‘no_tags_input_create’ ); add_filter( ‘pre_post_tax_input’, ‘no_tax_input_create’ ); function no_tags_input_create($tags_input) { $output = array(); foreach( $tags_input as $tag ) if( term_exists( $tag, ‘post_tag’) ) $output[] = $tag; return $output; } function no_tax_input_create($tax_input) { if( !isset($tax_input[‘post_tag’]) ) return $tax_input; $output = array(); $tags = explode(‘,’, $tax_input[‘post_tag’]); … Read more
I believe WordPress can handle multiple query parameter by default. You can load http://wordpresssite.com/?taxonomy-1=term-a&?taxonomy-2=term-b to query all post that belongs to term a (in taxonomy 1) AND term b (in taxonomy 2). Use JQuery load() function to load the intended query parameter, based on the selected item on the sidebar. Hope this help.
How to display term description in empty terms archive?
Thanks for your help everybody. I was using a custom post type and forgot to include ‘post_type’=>’my_custom_post_type’ I finally got to the problem by doing a var_dump on the WP_Query object and looking at the SQL. Running the query directly on the database and picking through it, I eventually found my error.
I belive you exporting custom content right? If yes, you will fail to import any taxonomy (tag or category or whatever)… in your export file not exists wp:terms items which is responsible for terms import. bug? perhaps. what you can do without big or small code changes (i did reasearch this particular tsk) you can … Read more
Ok, so I think I’ve got something for you! As you know, I’ve had the same issue, and when I was looping through each taxonomy I found that I was generating between 25-35 queries, which is crazy! So I decided to have a go at some MySQL on the term relationships table to see if … Read more
Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
Taxonomy page lead to 404 page on pagination
How to show custom taxonomy in the permalink?