WordPress.org

Support

Support » How-To and Troubleshooting » set thumbnail, post format: gallery, wp 2011

set thumbnail, post format: gallery, wp 2011

  • CharlieCanfield

    @charliecanfield

    i’m just learning wp, using theme 2011.
    i want to primarily use the post format “gallery” for it’s display of a thumbnail and excerpt in the blogroll. however, i don’t know how to actually set the desired thumbnail to represent the post; i think now it’s displaying the first of many images i inserted into the post.
    can anyone tell me how to reset which thumbnail is displayed in the post format: “gallery”?
    thnks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Santosh

    @santoshait

    you can use this function where you want to show thumbnail images
    the_post_thumbnail( ‘thumbnail’ );

    CharlieCanfield

    @charliecanfield

    thanks Santosh.

    a question that remains is- how does wp choose the thumbnail already included in the ‘gallery’ post format?

    and since there’s already code in there to display a thumbnail, is adding more code the answer, or merely finding the spot where the choice is being made and enter a different file name?

    btw- since i’m new to this i’m not sure where your code excerpt would go, although generally it seems it might be somewhere in the content-gallery.php?

    Santosh

    @santoshait

    it takes your featured image you choose or some themes have take first image of your post. you can add featured image from post edit page.

    CharlieCanfield

    @charliecanfield

    this is theme 2011, btw, in case that sheds light.

    odd- as a test i set a different featured image and wp puts it in the post header as is expected, it also puts it at the beginning of the post, which looks redundant, but still- the post format ‘gallery’ remains the same undesired image as before…

    i think there may be a need to ‘trick’ wp into re-selecting the image and i’m poking around to see it i discover it…

    Santosh

    @santoshait

    yes you can do it. by editing your theme. for editing your theme create a child theme and than edit and do whatever you want to do.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘set thumbnail, post format: gallery, wp 2011’ is closed to new replies.