dms92
Forum Replies Created
-
Haven’t i done this already??
The rules on the screenshot are wrong?
If not, then all UM pages have been excluded, but the error is still here.
Thank you!
Unfortunately, I can’t confirm that.
Mailpoet was installed, an email created to send immediately after posting.
I published an event, but it didn’t work.
Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsGreat!
Thank you for your time!Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsI use the elementor to build the theme/templates for single post, but the actual content will be added with block editor. Text mostly.
Any chance i have any problems in the future?
Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsHello,
after further investigation with elementor support we now know it’s a API bug.
If show rest api is set to false, everything works great.
Elementor has nothing do to with that.
I set the api to false and it’s all good!
Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsSure, i let you know as soon as i get a reply!
Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsJust checked themes / plugins again.
Noticed that elementor is the problem.
Everything works fine after i deactivate elementor, no matter the theme :/Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsSure, i can give you the info from “Get code” tab.
All Custom Post Type UI Post Types
function cptui_register_my_cpts() {
/**
* Post Type: Exhibits.
*/$labels = [
“name” => __( “Exhibits”, “hello-elementor” ),
“singular_name” => __( “Exhibit”, “hello-elementor” ),
];$args = [
“label” => __( “Exhibits”, “hello-elementor” ),
“labels” => $labels,
“description” => “”,
“public” => true,
“publicly_queryable” => true,
“show_ui” => true,
“show_in_rest” => true,
“rest_base” => “”,
“rest_controller_class” => “WP_REST_Posts_Controller”,
“has_archive” => true,
“show_in_menu” => true,
“show_in_nav_menus” => true,
“delete_with_user” => false,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => true,
“rewrite” => [ “slug” => “exhibits”, “with_front” => true ],
“query_var” => true,
“menu_position” => 4,
“supports” => [ “title”, “editor”, “thumbnail”, “excerpt”, “custom-fields” ],
];register_post_type( “exhibits”, $args );
}add_action( ‘init’, ‘cptui_register_my_cpts’ );
Exhibits Post Type
function cptui_register_my_cpts_exhibits() {
/**
* Post Type: Exhibits.
*/$labels = [
“name” => __( “Exhibits”, “hello-elementor” ),
“singular_name” => __( “Exhibit”, “hello-elementor” ),
];$args = [
“label” => __( “Exhibits”, “hello-elementor” ),
“labels” => $labels,
“description” => “”,
“public” => true,
“publicly_queryable” => true,
“show_ui” => true,
“show_in_rest” => true,
“rest_base” => “”,
“rest_controller_class” => “WP_REST_Posts_Controller”,
“has_archive” => true,
“show_in_menu” => true,
“show_in_nav_menus” => true,
“delete_with_user” => false,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => true,
“rewrite” => [ “slug” => “exhibits”, “with_front” => true ],
“query_var” => true,
“menu_position” => 4,
“supports” => [ “title”, “editor”, “thumbnail”, “excerpt”, “custom-fields” ],
];register_post_type( “exhibits”, $args );
}add_action( ‘init’, ‘cptui_register_my_cpts_exhibits’ );
All Custom Post Type UI Taxonomies
function cptui_register_my_taxes() {
/**
* Taxonomy: Exhibits type.
*/$labels = [
“name” => __( “Exhibits type”, “hello-elementor” ),
“singular_name” => __( “Exhibit type”, “hello-elementor” ),
];$args = [
“label” => __( “Exhibits type”, “hello-elementor” ),
“labels” => $labels,
“public” => true,
“publicly_queryable” => true,
“hierarchical” => true,
“show_ui” => true,
“show_in_menu” => true,
“show_in_nav_menus” => true,
“query_var” => true,
“rewrite” => [ ‘slug’ => ‘exhibit_type’, ‘with_front’ => true, ‘hierarchical’ => true, ],
“show_admin_column” => true,
“show_in_rest” => true,
“rest_base” => “exhibit_type”,
“rest_controller_class” => “WP_REST_Terms_Controller”,
“show_in_quick_edit” => true,
];
register_taxonomy( “exhibit_type”, [ “exhibits” ], $args );
}
add_action( ‘init’, ‘cptui_register_my_taxes’ );Exhibits type Taxonomy
function cptui_register_my_taxes_exhibit_type() {
/**
* Taxonomy: Exhibits type.
*/$labels = [
“name” => __( “Exhibits type”, “hello-elementor” ),
“singular_name” => __( “Exhibit type”, “hello-elementor” ),
];$args = [
“label” => __( “Exhibits type”, “hello-elementor” ),
“labels” => $labels,
“public” => true,
“publicly_queryable” => true,
“hierarchical” => true,
“show_ui” => true,
“show_in_menu” => true,
“show_in_nav_menus” => true,
“query_var” => true,
“rewrite” => [ ‘slug’ => ‘exhibit_type’, ‘with_front’ => true, ‘hierarchical’ => true, ],
“show_admin_column” => true,
“show_in_rest” => true,
“rest_base” => “exhibit_type”,
“rest_controller_class” => “WP_REST_Terms_Controller”,
“show_in_quick_edit” => true,
];
register_taxonomy( “exhibit_type”, [ “exhibits” ], $args );
}
add_action( ‘init’, ‘cptui_register_my_taxes_exhibit_type’ );i use hello elementor theme Version: 2.3.1 and elementor pro Version 3.2.1
Regards
Forum: Plugins
In reply to: [Custom Post Type UI] Custom post type cannot be updated or add new postsThe actual slug is “exhibits”.
The website is about a museum, so this slug is a must.
I cannot do what you suggest and rewrite the posts types because new content will be added at any time, and not by me but by the museum staff.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] emailsthanks mate!