Support » Fixing WordPress » Show Image & Excerpt for Post

  • I want to display the thumbnail & excerpt of a post on the sidebar. I am building a blog for a real estate company, they would like to have featured listings prominently displayed on the side bar and a permalink to the post containing more information. I could easily hard code this, however they will be doing all of the updating themselves, as a result it would be great if I could create a category called featured listings, and only allow one post at a time in that category. then somehow show the image and excerpt in the sidebar. That way all they would have to do is assign a post to the featured listings category when they want to change the display. if there is a plugin that will do this, that would be great also.


Viewing 1 replies (of 1 total)
  • You could place this in your sidebar:

    <?php if (is_category(‘7’) { the_excerpt(); } ?>

    You can get the excerpt reloaded plugin for more variations on the plain thing (I think it’ll let you display images with that plugin – I think the regular WP excerpt strips images).

    As for an image…you could just use the regular uploads function. Always have them insert the linked thumbnail at the beginning of each post. Then the image will always show with the alotted amount of text for the excerpt.

Viewing 1 replies (of 1 total)
  • The topic ‘Show Image & Excerpt for Post’ is closed to new replies.