Support » Plugin: Attachments » Only appears after i publish the post

  • Resolved markkelly1982



    I have the attachments plugin working with a custom post type.. my issue is when i hit “Add new” on the custom post, the attachments block does not appear. If i publish the post or if i edit and existing post then the block appears on the post page.

    It has me stumped!

    Any thoughts?



Viewing 9 replies - 1 through 9 (of 9 total)
  • Have you checked if it’s active in the Screen Options?

    Its not listed when i hit new post but it is there after i save the post… Any suggestions as to why? Thanks

    Plugin Author Jonathan Christopher


    Can you please deactivate all plugins except Attachments and let me know if the issue persists? Chances are another plugin (or your theme) is interfering with meta boxes.

    Hi Jonathan,

    Thanks for your suggestion.. The problem lies with the Types plugin ( )

    I will contact them to see if they can assist.



    Hi, I think this issue only happens on custom post types ‘add new’ screens. My setup is this:
    – Latest WordPress
    – Latest Attachments
    – Twenty Eleven Theme
    – Customisations in functions.php – created a custom post type and created an instance for attachments.

    On default Post and Page ‘add new’ screens, The attachment Meta Box appears properly. But on the Custom Post Type ‘add new’ screen, I’ve to ‘publish’ the post before the Attachments meta box appears for me to attach files.

    I’m posting this here instead of git since there is already a thread here.

    Plugin Author Jonathan Christopher


    Did you remove the customizations in your functions.php to see if the problem persists? Further, did you follow the fix outlined above and deactivate all plugins except Attachments and then see if the problem persisted?

    Hi Jonathan and Mark: I have been doing some tests, and I realised that the issue could be related to how we name our custom post types. I created 2 custom post types. The custom post types are created without the use of any plugin. One named ‘cooking-class’ and the other named ‘recipe’. I registered attachments instances for each post type separately.

    The attachments metabox appeared without any problem for the ‘recipe’ post type, but it only appeared after I publish a post for cooking-class’.

    Seems like the ‘-‘ in how I named the post type is causing the difference.

    Tested this using a clean install, all plugins deactivated except for attachments.

    Good spot! I changed the name of my custom post type and it works now. Thanks a mill.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Only appears after i publish the post’ is closed to new replies.