Categories
CMS Mastering Development Wordpress

Taxonomy term page not listing linked products

I have created a custom taxonomy named "Contributor" with the following code: if ( ! function_exists( ‘contributor_custom_taxonomy’ ) ) { // Register Custom Taxonomy function contributor_custom_taxonomy() { $labels = array( ‘name’ => _x( ‘Contributors’, ‘Taxonomy General Name’, ‘text_domain’ ), ‘singular_name’ => _x( ‘Contributor’, ‘Taxonomy Singular Name’, ‘text_domain’ ), ‘menu_name’ => __( ‘Contributors’, ‘text_domain’ ), ‘all_items’ […]

Categories
CMS Mastering Development Wordpress

Custom Post type with custom taxonmy (category) and custom tag write rules

I need help to create a rewrite rule for my custom taxonomy (resource category) and custom tag (resource tag). My custom post type is this: Resource – custom post type Resource type – Custom taxonomy Resource Category – Custom category Resource Tag – Custom Tag Here is my code: —Creating Custom post type— $args = […]

Categories
CMS Mastering Development Wordpress

Don’t know how to show custom taxonomies from a custom post_type

I created a custom post_type called Events, where I can show the Events(URL:HTTP://localhost.com/events) that are load by the archive-events.php that I created. Now I have created a custom taxonomy called counties that I want to use to filter Events by the county in which they are located. I’m able to apply counties to specific Events, […]

Categories
CMS Mastering Development Wordpress

Custom Taxonomy correctly works on slugs with multiple words, not single term slugs

Here’s the code for my custom taxonomy. function register_taxonomy() { $label = array( ‘name’ => __( ‘Type’, ‘taxonomy general name’ ), ‘menu_name’ => __( ‘Taxonomy’ ) ); $args = array( ‘hierarchical’ => true, ‘labels’ => $label, ‘show_ui’ => true, ‘show_admin_column’ => true, ‘query_var’ => true, ‘has_archive’ => true, ‘rewrite’ => array( ‘slug’ => ‘sections’, ‘with_front’ […]

Categories
CMS Mastering Development Wordpress

Use same slug base for Custom Post Type posts, and multiple taxonomy terms

I have done a lot of digging the past few days, and can come close, but not exactly what I need. I’m trying to alter a custom taxonomy/CPT permalink structure to all use the same slug base: /resources/. CPT: ‘resources’ TAX1, non-hierarchical: ‘type’ TAX2, hierarchical: ‘section’ I need the structure to look like this: /resources/ […]

Categories
Mastering Development

How can I create an archive template for a taxonomy that displays that taxonomies terms within a plugin

I have a taxonomy being created by my plugin called prop_cities and it has a rewright that makes it display as example.com/cities/city-term. I want to add a template to example.com/cities/ that will be and archive of all city-terms but I cant get it to work. here is my full taxonomy.php file and the portion of […]

Categories
CMS Mastering Development Wordpress

My custom taxonomy page is leading in 404 page

function wporg_register_taxonomy_instructor() { $labels = [ ‘name’ => _x(‘Instructors’, ‘taxonomy general name’), ‘singular_name’ => _x(‘Instructor’, ‘taxonomy singular name’), ‘search_items’ => __(‘Search Instructors’), ‘all_items’ => __(‘All Instructors’), ‘parent_item’ => __(‘Parent Instructor’), ‘parent_item_colon’ => __(‘Parent Instructor:’), ‘edit_item’ => __(‘Edit Instructor’), ‘update_item’ => __(‘Update Instructor’), ‘add_new_item’ => __(‘Add New Instructor’), ‘new_item_name’ => __(‘New Instructor Name’), ‘menu_name’ => __(‘Instructor’), […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items

I registered a taxonomy named districts, but when I add districts to nav menus, the nav menu items are invalid! Here is the code that registers the taxonomy: function masallah() { // Add new taxonomy, make it hierarchical like categories //first do the translations part for GUI $labels = array( ‘name’ => _x( ‘Districts’, ‘taxonomy […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items [duplicate]

https://youtu.be/lME3lY-kNbA I told the question on youtube video also I tell the question here again: I cant add my taxonomies to menu except 000 taxonomy.I dont know why but it works: the error : invalid items… ( red showing as you can see on youtube video ) this one works: function deneme() { // Add […]

Categories
CMS Mastering Development Wordpress

Invalid Menu Items – The most interesting question

The question needs it so I captured the error.It is necessary so please watch it. https://youtu.be/lME3lY-kNbA if it doesnt open, please try this: https://www.youtube.com/watch?v=lME3lY-kNbA&feature=youtu.be I told the question on youtube video so I share only the code like what I said on video. I hear that video,video,video are you youtuber? 😀 no, it needed this […]