• Resolved bcarney

    (@bcarney)


    We have a Senator’s photo as the featured image for all her posts, so when we link to them on Facebook it pulls her photo instead of the website header. However, that one photo is repeated over and over on the blog archive page. How can I “hide” the photo and prevent it from being displayed? Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try copying the following code to functions.php, i’m using it to hide featured image on single posts. I don’t know about wp much, found this on google, if it works, good for you, if not will suggest to wait, maybe someone from neve will help you ??

    function wordpress_hide_feature_image( $html, $post_id, $post_image_id ) {
      return is_single() ? '' : $html;
    }
    // add the filter
    add_filter( 'post_thumbnail_html', 'wordpress_hide_feature_image', 10, 3);

    Hi @bcarney,

    I can no longer see the photos on https://www.senatorlanatheis.com/press-releases/2/ I assume you have solved this issue, feel free to reach out if the issue still persists and provide the URL where we can see it.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding Featured Images on the Blog Archive page’ is closed to new replies.