I have a custom post type, but I want to allow only one post. if the user posts then the add new post should should be disabled or removed. so only post is allowed of that custom post type. If the one post is deleted, then the add new should be visible

I have tried removing the label Add new in the custom post type, but it appears even when not declared. I believe wordpress by default adds ;add new to posts

  • 2
    Why not make this a "Page" instead of a CPT, then you can define what metaboxes and fields to show up on that specific page. – Howdy_McGee Dec 4 '13 at 21:05
  • the plugin i have written is using custom post type. and im worried that it might take a long time to change it to page. or I might face new issues. I am kinda a novice in wordpress so it would be better to find a fix for it – meWantToLearn Dec 4 '13 at 21:08
  • 1
    Generally, finding a "fix" for something that might be a bad idea in the first place is an even worse idea. Please explain what your post type does and why it needs to be a post type instead of an ordinary page. – s_ha_dum Dec 5 '13 at 1:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.