WordPress.org

Ready to get started?Download WordPress

Forums

Show Image & Excerpt for Post (2 posts)

  1. profexcon
    Member
    Posted 7 years ago #

    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.

    Regards,
    Richard

  2. Doodlebee
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic