WordPress.org

Ready to get started?Download WordPress

Forums

Hide images on multiple post view (4 posts)

  1. jamiedustuk
    Member
    Posted 4 years ago #

    Hi, Is there any way that I can hide all images, including captions on posts when displayed in an archive, or the home page or similar and only display them when on single post view?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try using <?php the_excerpt();?> in place of <?php the_content();?> in template files where you don't want any images etc to be displayed.

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

    http://wordpress.org/support/topic/257866?replies=8

    (edit: might not work on captions)

  4. jamiedustuk
    Member
    Posted 4 years ago #

    Great, that was just what I needed alchymyth and yes your right it didnt work on captions text but they look quite neat on their own.

    thank you both

Topic Closed

This topic has been closed to new replies.

About this Topic