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

Cannot view Custom Post Type no matter what I try

This is my code to register the post type: // Register new post type, User Conversations: b2bking_conversation add_action( ‘init’, array($this, ‘b2bking_register_post_type_conversation’), 0 ); function b2bking_register_post_type_conversation() { // Build labels and arguments $labels = array( ‘name’ => __( ‘Conversations’, ‘b2bking’ ), ‘singular_name’ => __( ‘Conversation’, ‘b2bking’ ), ‘all_items’ => __( ‘Conversations’, ‘b2bking’ ), ‘menu_name’ => _x( […]

Categories
CMS Mastering Development Wordpress

custom post type and hidden url : what is the cleanest way to build CPT with custom page template?

I recently built a website were I needed to let user edit the custom post type archive page with elementor. So I decided to use page templates instead of archive pages, that way,I can build my pages with code (custom loop) and elementor (widgets). But after navigating in my website, I spotted strange behaviours. I’m […]

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 […]

Categories
CMS Mastering Development Wordpress

programmatically generated custom post type is created more than once

I have this code that is supposed to limit the user to the edit of (only) one predefined created custom post type. I want to setup only one post that is responsable to manage the homepage contents. I have an issue, I’ve noticed that the post type is ceated more than one time, I need […]

Categories
Mastering Development

Woocommerce Product Archive Page for Custom Taxonomy

I registered a custom taxonomy for WooCommerce products. Additionally, I set up a page template to list up all entries of the custom taxonomy with taxonomy archive links. Now I have the problem, that the archive links are not working. I was expecting them to work similarly to the product category and product tag archive […]

Categories
CMS Development Wordpress

Notice: Undefined property: WP_Error::$name

Latest edit: I opened my youtube chanell for error videos They dont be end.If you want to see my killer errors, you can subscribe it Here is the error: https://youtu.be/wAI4QLlpqDY also ı changed the codes so new codes: //adding taxonomy //hook into the init action and call create_book_taxonomies when it fires add_action( ‘init’, […]