WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Only appears after i publish the post (10 posts)

  1. markkelly1982
    Member
    Posted 1 year ago #

    Hi,

    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?

    Thanks,

    Mark

    http://wordpress.org/extend/plugins/attachments/

  2. Gianluca Cherubin
    Member
    Posted 1 year ago #

    Have you checked if it's active in the Screen Options?

  3. markkelly1982
    Member
    Posted 1 year ago #

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

  4. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. markkelly1982
    Member
    Posted 1 year ago #

    Hi Jonathan,

    Thanks for your suggestion.. The problem lies with the Types plugin ( http://wordpress.org/extend/plugins/types/ )

    I will contact them to see if they can assist.

    Thanks,

    Mark

  6. bucketpress
    Member
    Posted 1 year ago #

    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.

  7. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  8. markkelly1982
    Member
    Posted 1 year ago #

  9. bucketpress
    Member
    Posted 1 year ago #

    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.

  10. markkelly1982
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.