Return to Bug report

Child Thumbnails

Home Forums Graphene WordPress theme Bug report Child Thumbnails

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #643
    Anonymous

    Hi,

    I think I found a problem in loop-children.php

    In that it seems to display the thumbnail from the parent, rather than the child, in each excerpt below the post.

    I changed the code from line 63 from:

    echo graphene_get_post_image(get_the_id(), apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail'), 'excerpt');

    to:

    echo graphene_get_post_image($page->ID, apply_filters('graphene_excerpt_thumbnail_size', 'thumbnail'), 'excerpt');

    And it seemed to work OK for me then, though I am no expert!

    Nick

    #13144
    tvh
    Member

    Hello

    First time on WP and first time with this theme which I found easy to get to grips with.

    I’m having the same problem in that the sub pages all show the parent image even though (using WPv3) I have set the “featured image” in each sub page.

    Can anyone explain where I can find my “child” php files???

    Thanks!

    #13145
    Syahir Hakim
    Keymaster

    Thanks for highlighting that! Fixed it.

    #13146
    dabrowski
    Member

    I’m still not sure I understand a definitive source for the thumbnail. And now I’m seeing that Featured Image is the thumbnail. Should this still behave properly? I have child pages that don’t show the featured image as the thumbnail in the loop-child.

    #13147
    dabrowski
    Member

    Just discovered that you need to add thumbnail support individually for posts and pages. . . is that correct, and is that why just setting a Featured Image doesn’t automatically give the page a thumbnail in the loop-children? (By the way, it still seems like it’s not working. Does the graphene-option Slider image have to be set to a particular value?)

    add_theme_support( 'post-thumbnails', array( 'page' ) );

    Source: http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

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

You must be logged in to reply to this topic.