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

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

Categories
CMS Development Wordpress

How to create a separate ‘archive widget’ only for my cpt ‘portfolio’?

I am creating one custom wordpress theme for my portfolio. I have created one cpt as below: function codex_custom_init() { register_post_type( ‘Theme Settings’, array( ‘labels’ => array(‘name’ => __( ‘Theme Settings’ ), ‘singular_name’ => __( ‘Theme Settings’ ) ), ‘public’ => true, ‘has_archive’ => true, ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’), ‘menu_icon’ => ‘dashicons-admin-generic’, ) ); […]

Categories
CMS Development Wordpress

How to appear plural or singular custom taxonomy name(-s) inside woocommerce single product meta php file

I have already registered a custom taxonomy inside my theme function php file. Code $args = array ( ‘label’ => esc_html__( ‘Ποικιλίες’, ‘text-domain’ ), ‘labels’ => array( ‘menu_name’ => esc_html__( ‘Ποικιλίες’, ‘text-domain’ ), ‘all_items’ => esc_html__( ‘All Ποικιλίες’, ‘text-domain’ ), ‘edit_item’ => esc_html__( ‘Edit Ποικιλία’, ‘text-domain’ ), ‘view_item’ => esc_html__( ‘View Ποικιλία’, ‘text-domain’ ), ‘update_item’ […]

Categories
CMS Development Wordpress

Custom post type not using custom template

So I’ve been working on a WordPress site, and I need a custom post for documents, which is supposed to be registered as ‘document’. I generated the code for the custom post in a plugin, Meta Box, and placed the code in my functions.php file (though while testing, I disabled Meta Box to see if […]

Categories
CMS Development Wordpress

cpt not display inside nav menu

I have created a cpt to realize a dedicated section of a website and I want to show it inside the navigation menù with the various post created under the cpt linked as children. I’ve noticed that the cpt I’ve registered isn’t recognized, but other two cpt I have are showed inside the menù editor […]

Categories
API CMS Development Wordpress

Get custom post type REST API not working

I want to load the content of a modal using the REST API of wordpress. I’ve added the show_in_rest param to the custom post type I’ve registered in my function file, but I’m unable to load it, I will get this error rest_no_route. How I can fix this? Functions: function staff() { $labels = array( […]