add upload image to default taxonomy

there are several plugins out there that i have used and maybe this might be of help. Visit https://wordpress.org/plugins/wpcustom-category-image/ Download the plugin,upload in your plugins directory on your site then activate it. Go to categories section you will see image upload section. To display data on your frontend,either use the options provided by the plugin … Read more

How can I improve this taxonomy treating approach?

This is what functions.php is for. Add the function to functions.php, with just a slight modification that will allow you to pass in which category you want to get the children of: function the_categories_navigations_trees( $parent ) { $cat_data = get_categories( array( ‘parent’ => $parent, ‘hide_empty’ => 0 ) ); if ( $cat_data ) { $cat_links=””; … Read more

Filter get_cat_id for Custom Post Type

First, you are mixing up terminology a bit. Portfolio is taxonomy, but Work, Images, etc are terms (not categories). So you need to adjust functions for your taxonomy. Try this: Replace: $catid = get_cat_id(‘Images’); Becomes: $catid = get_term_by( ‘name’, ‘Images’, ‘portfolio’ ); $catid = $catid->term_id; And: $categories = get_categories(‘child_of=”.$catid.”&orderby=name’); Becomes: $categories = get_categories(‘child_of=”.$catid.”&orderby=name&taxonomy=portfolio’);

Review site custom post type structure

The way that I would approach it is using the tax_query to create a query that looks for both the correct genre and type. For example, to query all Movies that are Drama: $myquery[‘tax_query’] = array( array( ‘taxonomy’ => ‘genre’, ‘terms’ => array(‘drama’), ‘field’ => ‘slug’, ), array( ‘taxonomy’ => ‘type’, ‘terms’ => array(‘movie’), ‘field’ … Read more