Short URL not showing up on custom posts
-
I cannot get the short URL option to show up on my custom posts in the dashboard even though I have added the shortlinks option.I just see only sharing link options.
function cptui_register_my_cpts_price_updates() { /** * Post Type: Price Updates. */ $labels = [ "name" => __( "Price Updates", "Avada" ), "singular_name" => __( "Price Update", "Avada" ), ]; $args = [ "label" => __( "Price Updates", "Avada" ), "labels" => $labels, "description" => "Current Price Tables", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "rest_controller_class" => "WP_REST_Posts_Controller", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "page", "map_meta_cap" => true, "hierarchical" => true, "rewrite" => [ "slug" => "price-updates", "with_front" => true ], "query_var" => true, "menu_icon" => "dashicons-clipboard", "supports" => [ "title", "editor", "thumbnail", "author", "post-formats", "publicize", "shortlinks", "show_in_rest" ], "taxonomies" => [ "price_update_categories" ], ]; register_post_type( "price_updates", $args ); } add_action( 'init', 'cptui_register_my_cpts_price_updates' );
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Short URL not showing up on custom posts’ is closed to new replies.