PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Enabling Gravity Forms removes a Custom Post Type menu item in menu

  1. Hello. I have just enabled Gravity Forms on a website I am working on. I have a number of Custom Post Types set up in my theme function file. One is called Events.

    Whenever I activate Gravity Forms, the label in my menu for Events gets removed. My other two Custom Post Types remain though. The Events posts are still there, I can still use them etc, but the menu label disappears! Can anyone shed some light on this, and why Gravity Forms may have an issue with this?

    Many thanks

    Posted 13 years ago on Thursday August 18, 2011 | Permalink
  2. On the publicly visible portion of the side you lose that menu item, or in one of the admin screens?

    Can you post a link to your site please?

    Posted 13 years ago on Thursday August 18, 2011 | Permalink
  3. Hi Chris

    Thanks for your response. Sorry, should have specified this. It is on the Admin sidebar menu when you log in. The label disappears. This is the only Post Type that the form plugin seems to not like. I created other post types after this to test if it was the functions file etc, but seems that only events is not liked!

    I have copied the function I have used to create the events custom post type to see if it is anything in here. I turned WP debugging on but it didn't offer up any answers.

    http://pastie.org/2395806

    Many thanks

    Posted 13 years ago on Friday August 19, 2011 | Permalink
  4. By looking at your code above, it seems like the problem is related to the fact that you are specifying a menu position (25), and that position happens to be conflicting with Gravity Forms.

    'menu_position' => 25, // Appear right below "Posts"

    Gravity Forms does not hard code a menu position, but it looks like in your setup, it is being assigned that number, and that is conflicting with your events custom post type.

    To resolve the problem you can either choose another menu position (by trial and error) or remove that line altogether and let WordPress assign a menu position for you.

    Posted 13 years ago on Friday August 19, 2011 | Permalink
  5. That's terrific. I specified a different position and this works fine. Thanks for your help.

    Posted 13 years ago on Monday August 22, 2011 | Permalink
  6. Thanks for the update. Glad you got that worked out.

    Posted 13 years ago on Monday August 22, 2011 | Permalink

This topic has been resolved and has been closed to new replies.