How can I make wordpress to show images in articles on homepage?

By default post images not shown on home page by some themes. Showing images on articles in home page can be achieved by two ways.

1. You need to edit index.php of your theme. Remember you must edit currently activated theme. It is currently configured to only show a post excerpt. If you don’t supply an optional custom excerpt, WordPress will create one automatically by stripping out all formatting, markup and images from the first 55 words of your post.

Replace the_excerpt() with the_content(). You can easily find the_excerpt() by clicking CTRL + F and typing the_excerpt() , find it replace.

And save by clicking the update button.

2. Write a custom excerpt in the Excerpt field, under the post edit box. It can be as short, or as long, as you wish and can include images.

Comments

Popular posts from this blog

Fatal: LoadModule: error loading module 'mod_sql_mysql.c'

Regular Expression Route Constraints And Route Names in Laravel 5.4