WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] No attachments in custom post types (11 posts)

  1. r1987
    Member
    Posted 1 year ago #

    Hello,

    An issue with the new Attachments version, or is it just me?

    I have 9 custom post types, and in the old version you could tick, where to show the attchments metabox.

    After updating, adding the define(); line in wp-config and adding the new metabox code to the functions (yes, i also added the cpt's into the array), the metabox comes up, but there are no attachments shown, thou there should be.

    And this is funny, when i don't add my custom metabox, but use the default one, then on post and pages it shows the attachments.

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

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Did you run the migration script to move your old data to the new format? If so, did you use the defaults in the form fields? If you did, the instance name is attachments but if you copied and pasted a snippet it might be using my_attachments when it should be using attachments, give that a whirl!

  3. r1987
    Member
    Posted 1 year ago #

    Well right you are Jonathan !

    Thanks alot !!!

  4. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Great, you're welcome, I'll be elaborating on the documentation to make that more clear in the future.

  5. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Also if you wouldn't mind taking a moment to review Attachments I'd be very thankful!

  6. webmasterashishgaur
    Member
    Posted 1 year ago #

    Hi Jonathan,

    i need your urgent help, i did the migration but i am not sure that i used the default values and now it showing that You have already migrated your legacy Attachments data.
    but now custom post not showing the attachment option, please suggest how to resolve this issue.

    Thanks
    Ashish Gaur
    India
    9818596059

  7. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Please see this comment above, did you check that?

  8. webmasterashishgaur
    Member
    Posted 1 year ago #

    sir i checked and i used the script and its not taking my old database its creating the new my_attachment

  9. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not sure what that means -- please try changing my_attachments to attachments.

  10. webmasterashishgaur
    Member
    Posted 1 year ago #

    sir but its not taking the old database

  11. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year ago #

    Please review the documentation, paying particular attention to the instance name you're using. If you require one-on-one help I might suggest contracting a developer for direct support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic