Sorry, I closed my topic to soon. Later I realized that it was not exact the solution I needed. Because the post type “museum” has no featured image selected. I will start over with the old posts and try to explain again with ontother example.
1. Hi,
with this setting in the customizer.
https://gyazo.com/594d9af75a02245ea339fff4a887e774
and this code you gave me:
add_filter(‘etheme_backstretch_enqueue’, function($post_types){
$post_types[] = ‘muziek’;
$post_types[] = ‘bibliotheek’;
return $post_types;
});
I’ll have a a featured image on a single post for the custom post type “muziek” and “bibliotheek”
but can you also give a code so that now I can have a featured image for the post type “muziek” but a breadcrumb header for the custom post type “bibliotheek” like this:
https://gyazo.com/53a94816aa2390cfaca0867cd505a6b5
with regard Robert
2. Hello,
So, in other words you need the featured image for the muziek but don’t need that for the bibliotheek?
Then replace code with this one
add_filter(‘etheme_backstretch_enqueue’, function($post_types){
$post_types[] = ‘muziek’
return $post_types;
});
Olga
3. No that is not what I meant because for the post type ‘Museum’ you see now this:
https://gyazo.com/e45b673973c60433724dbfeab08c741a
And I want to see this:
https://gyazo.com/b7c22c06999db0de1d55adb7c219693a
The breadcrumb header
with regard,
Robert
4.
add_action(‘wp’, function () {
global $post;
if ( $post && is_object($post)) {
if ( in_array( $post->post_type, array( ‘museum’ ) ) ) {
set_query_var( ‘et_post-template’, ‘default’ );
}
}
}, 2);
New question:
I take for this example the post_type ‘muziek’ because than we have all features I want.
I want the possibility for a special single post_type to see this:
https://gyazo.com/d37f41c6aada1581fec3b530ca26312c
But with a selected featured image so that I can make this:
https://gyazo.com/1038847c376fec2fb882d4860a6b74a3
If I use the last code you gave me:
add_action(‘wp’, function () {
global $post;
if ( $post && is_object($post)) {
if ( in_array( $post->post_type, array( ‘museum’ ) ) ) {
set_query_var( ‘et_post-template’, ‘default’ );
}
}
}, 2);
it only works if there is no featured image selected. if you select a featured image than I’ll get this picture in the header and a big picture in the single post.