Is it possible somehow to insert post thumbnails from a custom post type?
-
Use post thumbnails from custom post type
-
Dear @tobiasger
not possible like this yet. But a good idea. We will write it down. I will as well ask the team if it is possible already with a trick.Best!
Marius
-
Yeah, I would greatly appreciate any tips on how to achieve this since I'm in desperate need of this quite fast. I just thought that the feature was already in the plugin before actually checking if that was the case.
If there's some way to modify the loop through some kind of filter or anything, it feels like it wouldn't be that complicated.
-
@mariusjopen Did you get any answers from the team?
-
Hey @tobiasger,
Yes you can do that. You must add the thumbnail support for the custom post type:
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'author', 'thumbnail' )
);
register_post_type('another_custom_post_type', $args);Best,
Felix -
@f-albert-work said in Use post thumbnails from custom post type:
Hey @tobiasger,
Yes you can do that. You must add the thumbnail support for the custom post type:
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'author', 'thumbnail' )
);
register_post_type('another_custom_post_type', $args);Best,
FelixYes, I've added support since before. But I'm still seeing "No Post Thumbnails available to insert!" in the popup box when clicking "Post Thumbnail" in the LayGridder tool.
-
Hey @tobiasger
Did you add a Thumbnail to a Post before?
You can do that by editing a posts featured image:
Do you use the latest version of laygridder?Best,
Felix -
@f-albert-work said in Use post thumbnails from custom post type:
Hey @tobiasger
Did you add a Thumbnail to a Post before?
You can do that by editing a posts featured image:
Do you use the latest version of laygridder?Best,
FelixUpdating to the latest version did it! I didn't know that this was a feature that was added since I wrote about the issue. But now it's working, thanks!
-