Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter dms92

    (@dms92)

    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.

    Thread Starter dms92

    (@dms92)

    Thank you!

    Thread Starter dms92

    (@dms92)

    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.

    Thread Starter dms92

    (@dms92)

    Great!
    Thank you for your time!

    Thread Starter dms92

    (@dms92)

    I 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?

    Thread Starter dms92

    (@dms92)

    Hello,

    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!

    Thread Starter dms92

    (@dms92)

    Sure, i let you know as soon as i get a reply!

    Thread Starter dms92

    (@dms92)

    Just checked themes / plugins again.
    Noticed that elementor is the problem.
    Everything works fine after i deactivate elementor, no matter the theme :/

    Thread Starter dms92

    (@dms92)

    Sure, 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

    Thread Starter dms92

    (@dms92)

    The 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.

    Thread Starter dms92

    (@dms92)

    thanks mate!

Viewing 11 replies - 1 through 11 (of 11 total)