Community Forums › Forums › Archived Forums › General Discussion › Add Featured Image Box to Custom Post Type
Tagged: Custom Post Type, featured image, premise
- This topic has 12 replies, 3 voices, and was last updated 12 years ago by
Canada Web Designers.
-
AuthorPosts
-
November 4, 2013 at 12:06 am #70764
BMW
MemberHow 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.
November 4, 2013 at 12:26 am #70768Brad Dalton
ParticipantYou can add it in the template or hook it in using a conditional tag for cpt's http://codex.wordpress.org/Conditional_Tags http://wpsites.net/web-design/code-snippets-for-adding-custom-functions/
November 4, 2013 at 12:28 am #70769BMW
MemberThanks. Do you have a training wheels version of these instructions? I've tinkered myself to death.
November 4, 2013 at 12:37 am #70774Brad Dalton
ParticipantNovember 4, 2013 at 12:41 am #70776BMW
Memberlanding_page is custom post type
November 4, 2013 at 1:13 am #70780Brad Dalton
ParticipantAre you sure its a custom post type?
<body class="single single-landing_page postid-19 full-width-content premise-landing premise-landing-19 content-landing-page-landing premise-theme">
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
is_post_type_archive( 'portfolio' )
to the page template name or page i.d which you can see in the body classes above.
November 4, 2013 at 1:20 am #70782BMW
Member100% sure: http://bit.ly/HpXGx7
November 4, 2013 at 1:06 pm #70888Brad Dalton
ParticipantNovember 9, 2013 at 1:51 am #71838BMW
MemberSorry, 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.
November 9, 2013 at 2:13 am #71843Brad Dalton
ParticipantThe featured image module normally displays on single CPT's but maybe the plugin removes it.
November 9, 2013 at 2:19 am #71844BMW
MemberAny 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.
November 9, 2013 at 2:35 am #71846BMW
MemberGot 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.
November 9, 2013 at 1:09 pm #71888Canada Web Designers
Memberwhat are your payment methods for affiliate programs ?
please answer here. -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.