Links in WP Admin Bar not appearing for custom post types

Support MB Custom Post Type Links in WP Admin Bar not appearing for custom post typesResolved

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33382
    Kenneth LangKenneth Lang
    Participant

    Hi, I'm using MetaBox and since setting it up and importing my custom post types, taxonomies, etc., I no longer see the links for my custom post types under NEW in the WP admin bar. If you hover over the link, the link is there, but there's no text - this is how it looks in the code:

    <div>

    </div>

    So the text which should be Networking Groups isn't showing, though the link is active. All other dropdown items under NEW are appearing normally. I found the setting Edit Post Type -> Advanced -> Show in admin bar, and selected that, but still no text is showing for my custom post types. How can this be fixed? Thank you!

    #33402
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please try to re-save the permalink settings (Post name) to fix this issue. I didn't see that on my demo site.
    https://monosnap.com/file/ebd1rvUOgrNVoxNSdNva7CaNvuGKKl

    #33406
    Kenneth LangKenneth Lang
    Participant

    I tried that, but still the custom post types are blank in the NEW dropdown. What else can I try? The 2 custom post types aren't even in the HTML for the dropdown.

    Thank you for your help.

    #33407
    Kenneth LangKenneth Lang
    Participant

    I'm not sure if you can see the code I posted so here goes again:

    < a class='ab-item' href='https://www.mynetworkingcentral.com/wp-admin/post-new.php?post_type=networking-groups'>

    #33408
    Kenneth LangKenneth Lang
    Participant

    < a class='ab-item' href='https://www.mynetworkingcentral.com/wp-admin/post-new.php?post_type=networking-groups' >< /a >

    #33411
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please share the code that creates the CPT on your site, I will try to implement it on my end and check the issue.

    #33415
    Kenneth LangKenneth Lang
    Participant

    I realized I had deactivated the Custom Post Types UI plugin because I thought I needed to in order to have MetaBox take over the CPTs. Is it OK to have CPT UI and MetaBox both activated on the site? If so, then the issue is fixed. Please let me know if that's OK - thank you!

    #33425
    Long NguyenLong Nguyen
    Moderator

    Hi,

    No need to activate the CPT UI plugin when you use the MB Custom Post Type plugin. You can move all CPTs from CPT UI to Meta Box as well. Refer to this article https://metabox.io/move-custom-post-types-custom-taxonomies-from-cpt-ui-to-meta-box/

    #33434
    Kenneth LangKenneth Lang
    Participant

    Yes I'm aware that I don't need to keep CPT UI activated, but when I deactivate it, that's when the CPT items disappear from the "NEW" dropdown. So my question is, is it OK to keep CPT UI activated, even though it doesn't need to be, so that these links are visible? Is there any wrong with having CPT UI and MetaBox both active on the site?

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.