Enable Featured Image In WordPress

First, in the theme’s functions.php file, declare that your theme supports this feature by writing below code. This will enable the UI in the WP Admin.

add_theme_support( 'post-thumbnails');

That will enable Post Thumbnail UI for both Post and Page content types. If you’d only like to add it to one, you can do it like this :

add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts

add_theme_support( 'post-thumbnails', array( 'page' ) ); // Add it for pages

By this way you can enable featured image feature for post and page or for only page or for only post in your WordPress blog. Now one more thing that how we can show this featured image on out site. So there is one function by which you can show this featured image on your site which is given below :

<?php the_post_thumbnail( 'thumbnail' ); ?>;

Please write this function inside while loop. Wherever you write this function it will show featured image for that post.

Related posts:



Partners
Trivia

Who invented the fluorescent lamp? Thomas Edison discovered the electric light and the fluorescent lighting was thought up by Nikola Tesla. But the fluorescent lamp we use today was invented by Agapito Flores (a Cebu man named Benigno Flores of Bantayan Island, according to the Philippine Daily Inquirer), a Filipino scientist.

Services
  • PSD Conversion

    Need a design mockup converted into a functional WordPress theme? We can help! We specialize in slicing and dicing custom mockups into fully functional WordPress themes. The custom designed theme will also utilize all current WordPress features, like m...

  • Wordpress Websites

    Need a WordPress website? We can help! At ETN Multimedia we offer complete website solutions. We put our creativity, originality, and years of expertise to work to design the perfect WordPress website for you. Already have a WordPress website? Ca...

  • Web Design

    Web Design For the budget conscious, we offer basic, simple and static web pages coded in basic HTML, CSS and for a little dynamicity, javascripting. Please feel free to go over our web design packages. We create static web sites based on client ...

  • Web Maintenance Services

    Some corporate websites do not require a major overhaul, but instead require some kind of maintenance with regards to content and basic layout. We are more than qualified in offering regular maintenance and updating services to our clientele. Aside ...

  • Online Application Development

    Dynamism, that is the key on the today's online business, and as anybody can see, that is the future of Internet. If you want create to a dynamic online services like dating site, online shopping platform, social network platform to the World Wide ...

  • Web Development

    People often misunderstand the differences between web development and web design; these are two completely different things. Web development is in charge of the structure of the website, this is the behind the scenes operations, it is where all the co...

  • CMS Solutions

    Modern style editable web solution Having the ability to quickly and easily update your website empowers your organisation to have a highly dynamic online presence. At ETN MultiMedia, we understand that every organisation has different requirements ...