Add Featured Image Box to Custom Post Type

Community Forums Forums General Discussion Add Featured Image Box to Custom Post Type

This topic is: not resolved

This topic contains 12 replies, has 3 voices, and was last updated by  Canada Web Designers 1 year ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #70764

    BMW
    Participant
    Post count: 16

    How can I add a featured image to a custom post type?

    I’m using Premise landing pages and I just want to add a featured image to my landing page.

    I’ve searched high and low.

    Using Magazine Pro theme.

    • This topic was modified 1 year ago by  BMW.
    • This topic was modified 1 year ago by  BMW.
    • This topic was modified 1 year ago by  BMW.
    • This topic was modified 1 year ago by  BMW.
    #70768

    braddalton
    Participant
    Post count: 10567
    #70769

    BMW
    Participant
    Post count: 16

    Thanks. Do you have a training wheels version of these instructions? I’ve tinkered myself to death.

    #70774

    braddalton
    Participant
    Post count: 10567

    Link to the landing page please.


    #70776

    BMW
    Participant
    Post count: 16

    http://bit.ly/17H6dGi

    landing_page is custom post type

    #70780

    braddalton
    Participant
    Post count: 10567

    Are you sure its a custom post type?
    [html]
    <body class="single single-landing_page postid-19 full-width-content premise-landing premise-landing-19 content-landing-page-landing premise-theme">
    [/html]

    Can’t test it because i don’t have that plugin. Try this http://wpsites.net/web-design/add-image-to-custom-post-type-archive-in-genesis/

    Change the conditional tag if needed from [php]is_post_type_archive( ‘portfolio’ )[/php] to the page template name or page i.d which you can see in the body classes above.


    #70782

    BMW
    Participant
    Post count: 16
    #70888

    braddalton
    Participant
    Post count: 10567

    Should work then in that case.


    #71838

    BMW
    Participant
    Post count: 16

    Sorry, I don’t think that I was clear enough.

    I need the featured image meta box to show on the admin pages for custom post types. Just like the featured image box shows up when editing a normal blog posts. So that I can have a unique featured image per post of my custom post type.

    Sorry for the misunderstanding.

    #71843

    braddalton
    Participant
    Post count: 10567

    The featured image module normally displays on single CPT’s but maybe the plugin removes it.


    #71844

    BMW
    Participant
    Post count: 16

    Any ideas on how to add thumbnail support back to the plugin? The plugin is Premise by Copyblogger, so I’m surprised why they would remove it.

    You can download the plugin here: http://bit.ly/HO9s44

    Thanks for your help so far.

    #71846

    BMW
    Participant
    Post count: 16

    Got it. Looks like I just needed to add the ‘thumbnail’ portion to this line of code:

    'supports' => array( 'title', 'editor', 'revisions', 'custom-fields', 'thumbnail' ),

    in premise.php.

    Thanks for your help Brad.

    #71888

    Canada Web Designers
    Member
    Post count: 1

    what are your payment methods for affiliate programs ?
    please answer here.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.