Skip to Content
PHPCODE
Message of featured image in wordpress
wordpress code / October 29, 2022
function add_featured_image_instruction($content) {
global $post;
$post_type = get_post_type();
if($post_type == 'c_news'){
$content .= '<p>Please upload 510 * 575 image size </p>';
}
return $content;
}
add_filter( 'admin_post_thumbnail_html', 'add_featured_image_instruction');
Comments

Hey, I think your site might be having browser compatibility issues. When I look at your blog site in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog!

Leave a Reply

Your email address will not be published.

PHPCODE © 2023