Support » Plugin: Custom Post Type UI » Cant see CPT in menu

  • Resolved Basis Reclame

    (@markbasisreclamenl)


    Hi,

    I have created a new CPT named: Member CPT
    But it does not show up in my menu.

    I want to add some posts there but can’t get there now..

    I have the show in menu setting set to: treu

    here are the other settings:
    name: member_cpt
    label: Member CPT
    singular_label: Member
    description: Voor het dynamisch vullen van het formulier
    public: true
    publicly_queryable: true
    show_ui: true
    show_in_nav_menus: true
    show_in_rest: true
    rest_base: member-cpt
    has_archive: true
    has_archive_string: members-cpt-form
    exclude_from_search: true
    capability_type: post
    hierarchical: true
    rewrite: true
    rewrite_slug: “”
    rewrite_withfront: true
    query_var: true
    query_var_slug: “”
    menu_position: 5
    show_in_menu: true
    show_in_menu_string: 5
    menu_icon: https://test.cavrz.nl/wp-content/uploads/2018/10/Member-cpt.png
    custom_supports: “”

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    First thing I’d tweak is the “show in menu” text input, because “5” isn’t going to be a valid parameter to pass there.

    A little bit more info on that part can be found at https://codex.wordpress.org/Function_Reference/register_post_type#show_in_menu and the “some string” mentions.

    If it doesn’t work still after that, I’d next fiddle with the menu position, as those can, at times, clash and internally I can’t recall WP ever shuffling duplicates enough to satisfy all with a position. It simply just overwrites that position with the new value.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    @markbasisreclamenl did the thoughts in my last reply help resolve your issue?

    Basis Reclame

    (@markbasisreclamenl)

    What else than “5” (or 10, 15, or whatever next) should I be adding in this field?

    Basis Reclame

    (@markbasisreclamenl)

    Like this? <?php get_permalink(‘5’); ?>

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    From the codex link I provided last week, it’s more something like as follows.

    If you wanted the post type to show up under the tools submenu, you would look at the URL and note down everything after the “/wp-admin/” part, so tools.php.

    If you wanted it in the “Pages” submenu, it would be edit.php?post_type=page.

    If you want it to be just a standard top-level admin menu, then just leave that input field completely blank, and set the dropdown to true.

    Should get you where you need.

    Basis Reclame

    (@markbasisreclamenl)

    Hmm.. still nothing…It is still not working….

    Would you be so kind to see if I did anything wrong?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Next edit I would end up making is remove the “5” for the menu position and let WordPress set that on its own. Beyond that, I am not seeing anything specific that should conflict and prevent from showing anything in the admin menu.

    Basis Reclame

    (@markbasisreclamenl)

    There may be a mis understanding (of me).
    I want the new post type t show up in WP dash. I see its in the /wp-admin/nav-menus.php but I need it to be in the dashboard. Was that clear for you?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    I was figuring and answering in regards to it showing in the left hand side of your WP admin panel, much like where you access your plugins list, comment management, etc.

    Did you remove the menu position yet to see if that makes it show up there?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cant see CPT in menu’ is closed to new replies.