WordPress.org

Ready to get started?Download WordPress

Forums

how to hide article to show only image on index page? (4 posts)

  1. therapp
    Member
    Posted 2 years ago #

    how to hide article to show only image on index page?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Edit your theme's index.php template file.

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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/

  4. therapp
    Member
    Posted 2 years ago #

    - 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

Topic Closed

This topic has been closed to new replies.

About this Topic