showing the post and the exerpt (3 posts)

  1. dss
    Posted 9 years ago #

    I want to show my post, and also make it easy for posters to include an image which will appear like an icon (floating to the right.) automatically.

    I thought the best way to do that would be to write a post as always, and then add the image into the exerpt input box.

    But how would I code that loop?
    Would it have to actually be two loops?

    I've seen a lot of people doing this, how do you do it?

  2. Kafkaesqui

    Posted 9 years ago #

    In your post loop just put:

    <?php the_excerpt(); ?>
    <?php the_content(); ?>

    If they are placing the url to an image, but not the actual <img> tag for it, an option to display it correctly is:

    <img src="<?php the_excerpt_rss(); ?>" />
    <?php the_content(); ?>

    Finally, if your authors are uploading images through the post editor's upload tool in WP2, an alternative to using the excerpt:


  3. dss
    Posted 9 years ago #

    As always...

    thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.