How to Create an Image Upload Box for Custom Posts?

Is it possible to have an image upload box in a Custom Post Type?

I would like the user to be able to upload specific images just for the CPT.

Related posts

Leave a Reply

2 comments

  1. Yes, you can do it programmatically and it probably can be built with some of the Related Questions listed here on the right of the page.

    But, IMO, this is faster and easier to do with a plugin.

    Advanced Custom Fields

    Create an image field and associate it with your Custom Post Type.
    enter image description here

    That results in:
    enter image description here


    Another good plugin capable of doing the same

    Custom Content Type Manager
    A nice feature is the “Repeatable Field”, which is a premium add-on in ACF.
    Reference Q&A: Creating Photo Gallery System with Custom Post Type