Categories
CMS Mastering Development Wordpress

Misleading behaviour on Menu & Theme location

I’ve got the following usual menu registration function: function my_register_menus(){ register_nav_menus( array( ‘primary-menu’ => __( ‘Primary Menu’, ‘text_Domain’ ), ‘footer-menu’ => __( ‘Footer Menu’, ‘text_Domain’ ), ) ); } add_action( ‘init’, ‘my_register_menus’, 0 ); and this is what I call in my header.php: wp_nav_menu( array( ‘theme_location’ => ‘primary-menu’ )); Now, in the WP Admin > […]

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 Development Wordpress

How to create custom status for post and change it after x days

I’m trying to create a new custom status for WP post and custom posts to make specific queries. I used this function to achieve this but without results: // Registering custom post status function wpb_custom_post_status(){ register_post_status(‘archived’, array( ‘label’ => _x( ‘Archived’, ‘post’ ), ‘public’ => false, ‘exclude_from_search’ => false, ‘show_in_admin_all_list’ => true, ‘show_in_admin_status_list’ => true, […]

Categories
CMS Development Wordpress

CPT tags not showing when editing post

Since Gutenberg I’ve used the plugin “Classic Editor” for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I’m now starting to look at removing the plugin for the website and noticed an issue that I don’t understand. When editing a custom post […]

Categories
CMS Development Wordpress

CPT tags not showing when editing post

Since Gutenberg I’ve used the plugin “Classic Editor” for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I’m now starting to look at removing the plugin for the website and noticed an issue that I don’t understand. When editing a custom post […]

Categories
CMS Development Wordpress

CPT tags not showing when editing post

Since Gutenberg I’ve used the plugin “Classic Editor” for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I’m now starting to look at removing the plugin for the website and noticed an issue that I don’t understand. When editing a custom post […]

Categories
CMS Development Wordpress

CPT tags not showing when editing post

Since Gutenberg I’ve used the plugin “Classic Editor” for one of my websites until I have time to make the necessary adjustments to fully work with the new Gutenberg look. I’m now starting to look at removing the plugin for the website and noticed an issue that I don’t understand. When editing a custom post […]

Categories
CMS Development Wordpress

Custom taxonomy not showing in grid view for ‘attachment’ post type

I’ve added a taxonomy called ‘colors’ to the built-in attachment post type. I can see the taxonomy when editing an item the ‘list’ view, but when using the ‘grid’ view, I can’t see/use the terms of the taxonomy. List view: Grid view: I want the taxonomy to show up in the grid view as well, […]