Forums

the_excerpt function (3 posts)

  1. sgirish11
    Member
    Posted 11 months ago #

    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.

  2. LenK
    Member
    Posted 11 months ago #

    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.

  3. Gangleri
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Topic