Add featured image to custom post type
-
The theme I’m using has a default featured image which shows on posts, but it’s not showing up to the custom post type.
I think I need to add something to this line of code, but I don’t know what.
Can you please help me?if ( $add_single_image && $image && is_singular( ‘post’ ) ) {
printf( ‘<div class=”single-featured-image”>%s</div>’, $image ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped — low risk, and Genesis does not escape image output either.
}The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add featured image to custom post type’ is closed to new replies.