Do not display post images on front page

Try this <?php add_filter(‘the_content’,’wpi_image_content_filter’,11); function wpi_image_content_filter($content){ if (is_home() || is_front_page()){ $content = preg_replace(“/<img[^>]+\>/i”, “”, $content); } return $content; } ?> Place in your functions.php file, call up your the_content() like normal. This will allow you to still have a feature image, but remove all images from main page. If you want to remove them from … Read more

Original image not saving?

The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail(): the_post_thumbnail(); // without parameter -> ‘post-thumbnail’ the_post_thumbnail( ‘thumbnail’ ); … Read more

How to add image in rss?

Here is the link I found a solution. How to display featured post thumbnails in WordPress feeds paste this code snippet in your theme functions.php file // display featured post thumbnails in WordPress feeds function wcs_post_thumbnails_in_feeds( $content ) { global $post; if( has_post_thumbnail( $post->ID ) ) { //if you want to show thumbnail image $content=”<figure>” … Read more