November 4, 2013 at 12:06 am #70764
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.November 4, 2013 at 12:26 am #70768
You 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 #70769
Thanks. Do you have a training wheels version of these instructions? I’ve tinkered myself to death.November 4, 2013 at 12:37 am #70774
Link to the landing page please.
November 4, 2013 at 12:41 am #70776November 4, 2013 at 1:13 am #70780
Are 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 [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.
November 4, 2013 at 1:20 am #70782November 4, 2013 at 1:06 pm #70888
Should work then in that case.
November 9, 2013 at 1:51 am #71838
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.November 9, 2013 at 2:13 am #71843
The featured image module normally displays on single CPT’s but maybe the plugin removes it.
November 9, 2013 at 2:19 am #71844
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.November 9, 2013 at 2:35 am #71846
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' ),
Thanks for your help Brad.November 9, 2013 at 1:09 pm #71888
Canada Web DesignersMemberPost count: 1
what are your payment methods for affiliate programs ?
please answer here.
You must be logged in to reply to this topic.