Support » Fixing WordPress » How to add excerpts of posts under their title with my Recent Posts widget?

  • Hey all,

    I am simply wondering how exactly I can get excerpts from posts to display underneath the titles next to the thumbnails on my site under the “What’s Hot” section towards the top. There is the one post with the excerpt next to the other 3 that has it, however I would like all 4 to include excerpts. I’ve tried so many things already and nothing is working! If any of the people who are smarter than me here can help me out, I will greatly appreciate it. Thank you in advance!



Viewing 4 replies - 1 through 4 (of 4 total)
  • You should be able to print the excerpt using the_excerpt() in the loop that generates your three headlines on the right side. (Or, if you want to return the excerpt’s content for further processing, you can use get_the_excerpt()).

    Thank you, where exactly would I put the code, and what would it look like exactly if you can elaborate a little? Thank you.


    OK…so, I FIXED it, with your help, however I had to do a lot of reading in the support area and figure what the loop was (considering I’m a noob).

    I figured out I had to edit the actual 1 column widget that’s in the framework directory of my theme. WHEEW. Thanks so much for your help so far.

    However I have one MINOR issue. Is there anyway I can keep the text in the last recent post that shows from getting cut off? I want it to display the full line of text. It seems like there’s some type of set limit to the area.

    Thanks so much in advance!


    Glad you got it working. I was planning to ask you to have a look at your theme files after work, but it seems like you’ve got it going.

    As to your “MINOR issue”: It looks to me like there’s an overflow: hidden; declaration somewhere in the stylesheet (by default, a theme’s stylesheet is called “style.css”, but it could be elsewhere). It also looks like the element is styled that way so as to make it fit in a box of a certain height; you might want to be mindful of that when you’re editing your stylesheet. You might fix your current problem but introduce another one, if your element is suddenly larger than intended by the theme’s originator.

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add excerpts of posts under their title with my Recent Posts widget?’ is closed to new replies.