• Hi,
    I used the_excerpt() but its not showing the images which i uploaded from backend. I used the_content() its showing images properly but i dont want to show all post content i want read more button. Can anybody please help me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • When you use the_excerpt() WordPress strips out all formatting. There are two ways to go about this:

    1. If you want to keep using the_excerpt() and show images you can do so by using Custom Fields. Take a look at any of the magazine-style themes to see how they do this.

    2. Rather than use the_excerpt() you can use the_content(). Then when writing a new post use the “more” tag on the toolbar.

    Or simply use an Excerpt Plugin that allows you to choose if you want to strip certain formatting. I use Excerpt Editor myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_excerpt function’ is closed to new replies.