Featured image at top of posts

Community Forums Forums General Discussion Featured image at top of posts

This topic is: not resolved

This topic contains 3 replies, has 3 voices, and was last updated by  DenverEric 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #31110


    Please help me – I’ve added the code below to functions.php file to add the featured post to the top of the single post page. It works fine on my development account. In the live site, however, the featured image is still not showing up at the top of the post. I’ve gone through deactivating plugins, and nothing seems to be causing the problem. I’m completely lost.

    /** Add featured image above single posts */
    add_action( ‘genesis_before_post_title’, ‘rm_featured_image’ );

    function rm_featured_image() {
    if ( is_single() ): ?>
    echo ‘<div id=”featured-image”>’;
    echo get_the_post_thumbnail($thumbnail->ID, ‘thumbnail-size’);
    echo ‘</div>’;
    <?php endif;

    Here is a post on the live site: http://speakupforsuccess.com/6915/public-speaking-tip-13-listen-to-your-audience-part-2/

    If anyone can help me I’d be so very grateful – I’m completely frustrated.



    Which theme are you using?

    Here’s the code from the streamline theme which pulls an image from the posts and displays it above the posts title. If i knew which theme you are using, i could test it locally using the same theme.

    /** Add post image above post title */
    add_action( ‘genesis_before_post’, ‘streamline_post_image’ );
    function streamline_post_image() {
    	if ( is_page() ) return;
    	if ( $image = genesis_get_image( ‘format=url&size=post-image’ ) ) {
    		printf( ‘<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>’, get_permalink(), $image, the_title_attribute( ‘echo=0′ ) );



    It’s a custom child theme converting from thesis to genesis. Is the code above pulling the featured image or an image from inside the post? It’s the featured image we’re looking for here.




    I am working on a custom plugin to help migrate from Thesis to Genesis. The post image in Thesis does not move over to a new theme, such as Genesis, it stays with Thesis in your blog’s database.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.