Support » Fixing WordPress » how to hide article to show only image on index page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    Edit your theme’s index.php template file.

    Michael

    (@alchymyth)

    Forum Moderator

    this section is putting the full post (up to the read-more) out:

    <div class="body">
                                                        <?php the_content('Continue Reading'); ?>
                                                </div>

    any answer depends on where the image is suppposed to come from:

    – are you using the featured image, i.e. post thumbnail?
    – is there always at least one image in the post?
    – do you want to use the top image in the post, or one of the post attachment images?

    – do you need a ‘default’ image?

    have a look at this plugin http://wordpress.org/extend/plugins/get-the-image/

    – are you using the featured image, i.e. post thumbnail

    – I use plugins ‘Thumbnails For Excerpt’.

    – is there always at least one image in the post?

    – Yes

    do you want to use the top image in the post, or one of the post attachment images?

    – plugins ‘Thumbnail For Excerpt’ need the first top image to display on index page.

    – do you need a ‘default’ image?

    – No

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to hide article to show only image on index page?’ is closed to new replies.