Is there a way of storing posts and pages under the same hierarchy?

Yes, a custom taxonomy is the best way to achieve this. For a cat breeder site I’ve set a taxonomy for colors (in german: Farbe): register_taxonomy( ‘farbe’, array( ‘post’, ‘page’ ), array( ‘hierarchical’ => false, ‘label’ => ‘Farbe (Fell)’, ‘query_var’ => ‘farbe’, ‘rewrite’ => array(‘slug’ => ‘farbe’) ) ); Note the third parameter array( ‘post’, … Read more

Approach for saving a product attribute values with a custom UI in a woocommerce+dokan set up [closed]

Actually, this ended up being straight forward. Displaying the drop down I used this line to get the list of terms for my pa_condition taxonomy: $attr_condition = get_terms( array( ‘taxonomy’ => ‘pa_condition’, //empty string(”), false, 0 don’t work, and return empty array ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => false, //can be 1, ‘1’ … Read more

Permalink Structure problem with cpt and custom taxonomy

Welcome to WP StackExchange! You may want to try something like this, which uses the same rewrite setting as your register CPT: $args = array( ‘rewrite’ => array(‘slug’ => ‘events/ecat’, ‘with_front’ => false) ); register_taxonomy( ‘ecat’, array( ‘events’ ), $args ); Sources: https://cnpagency.com/blog/the-right-way-to-do-wordpress-custom-taxonomy-rewrites/ https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments

How to show taxonomy meta on frontpage?

Over at Google+ I posted the same question and credits go to Alexander Conroy for coding up the correct solution: /* List all blogs, source example 2: http://codex.wordpress.org/Function_Reference/get_terms#Examples * * credits Alexander Conroy – https://plus.google.com/u/0/113053085239726972447 */ $terms = get_terms(‘blog’, $args); $blog_image_meta = get_option(‘blog_image’); if (!empty($terms)) { foreach ($terms as $term) { $meta = isset($blog_image_meta[$term->term_id]) ? … Read more

Remove description in custom taxonomy edit screen

check out this thread – I’m afraid nothing has changed since then, there is still no way of filtering the description field (it’s just html hardcoded in the file https://github.com/WordPress/WordPress/blob/master/wp-admin/edit-tags.php#L484, so you can’t remove it with php without editing the core files, which is never a right way to go). The hook you’re using, {$taxonomy}_edit_form_fields … Read more