Welcome to PressWork!

Want to ask a question or join the discussion? Great! Join now.

In this Discussion

Display featured post image on single post page
  • Hello,

    I am working with http://timerball.com/ and I am having trouble displaying the featured image for a post on the single post page (permalink). I have been looking through the loop and I've made modifications to the actions.php, but I see no current way it integrates the featured image.

    Cheers.
  • i cant help you with this but why you dont insert the image a second time into the post itself?

    1. set featured image
    2. put same image into post
  • I need it to be adjacent to the meta as per the front page
  • I still need an aswer to this if anyone has some input.
  • cbavotacbavota
    This answer was Accepted.
    If you look at the pw_post_content() function you will see that the featured image is only displayed if it is not a single post page (!is_singular()). You would need to somehow include the following code so that it appears on single pages too:
    if(function_exists('has_post_thumbnail') && has_post_thumbnail()) {
    if(empty($ignore_image) || has_post_format('image')) {
    echo '<a href="'.get_permalink().'" class="image-anchor">';
    the_post_thumbnail($size, array( 'class' => 'alignleft' ));
    echo '</a>';
    }
    }
    image Senior Developer & Co-Founder of PressWork
  • What tagline would I be putting that under? For the storycontent?
  • cbavotacbavota
    This answer was Accepted.
    It would have to go before this part:
    478
    479
    480
    481
    if(!empty($display_excerpt))
    pw_excerpt($excerpt_length);
    else
    the_content( __( 'Read more &rarr;', "presswork" ) );
    image Senior Developer & Co-Founder of PressWork
  • Thank you so much! I love PressWork to death.