• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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:

    https://guff.szub.net/2006/02/09/post-image/

    Thread Starter dss

    (@dss)

    As always…

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘showing the post and the exerpt’ is closed to new replies.