Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)

should it be.. $paged = (get_query_var(‘page’)) ? get_query_var(‘page’) : 1; WP_Query in codex: Pagination Note: You should set get_query_var( ‘page’ ); if you want your query to work with pagination. Since WordPress 3.0.2, you do get_query_var( ‘page’ ) instead of get_query_var( ‘paged’ ). The pagination parameter ‘paged’ for WP_Query() remains the same.

WP insert post and custom taxonomy

Where is the code that catches an processes the $_POST data? Is it in a template file? Or is it in a function that is run on a hook? If it’s the latter, and if taxonomy_exists() is returning false as you suggest here (http://wordpress.stackexchange.com/questions/45798/wp-insert-post-and-custom-taxonomy#comment58402_45810), it’s possible that you’re checking before register_taxonomy has had a chance … Read more

Custom Post Types not showing on Custom Taxonomy archive page

By default, all public post types are included in the main main query on taxonomy pages. If you look at register_post_type()’spublic parameter when set to true ‘true’ Implies exclude_from_search: false, publicly_queryable: true, show_in_nav_menus: true, and show_ui:true. When you register your post type, you set exclude_from_search to true. This does not only remove the custom post … Read more

How To Change Custom Taxonomy To Radio Buttons

hope it isn’t considered overly self-promotional, but i’ve turned stephen harris’ code into a plugin that will do this for you: http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ i’m still working on getting the quick edit to show radio buttons too, but that appears to be significantly harder.

Creating a non-removable taxonomy term

Update Indeed, there is a way to define one term per taxonomy as default term which makes it non-deletable from the admin GUI. WP_Terms_List_Table looks for an option get_option( ‘default_’ . $this->screen->taxonomy ). So if you have a custom Taxonomy called genre, you have to set an option default_genre with the term-id of the term … Read more

Custom taxonomy hide meta box but show in menu

You’re looking for the meta_box_cb argument. $args = array( ‘hierarchical’ => true, ‘labels’ => $labels, ‘show_ui’ => false, ‘show_admin_column’ => false, ‘show_in_menu’ => true, ‘show_in_nav_menus’ => true, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘wheel’ ), ‘meta_box_cb’ => false, ); register_taxonomy( ‘wheel’, array( ‘product’ ), $args ); You can also define a custom callback … Read more