Skip to main content

Posts

Showing posts with the label post thumbnail

Using Featured Image in WordPress

Today there are innumerable blogs on any topic you would choose. If you are a blogger your main priority would be to make your blog, stand out! Make it more attractive and tempt people to read what you right. One of the most important technique that major blogs use is setting a featured image for each post. This can be achieved very easily as it 's there in-built in wordpress. But you have to enable it in functions.php file within your theme folder. Here is how you do that: add_theme_support( 'post-thumbnails' ); Paste this within your functions.php file. Additionally you can specify which should have this feature in an array like this: // Add it for posts add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for pages add_theme_support( 'post-thumbnails', array( 'page' ) ); You also additional control over this, you explicitly decide the dimension or hard crop the thumbnails etc. The dimension can be set like this: //the scale ...