WordPress.org

Ready to get started?Download WordPress

Forums

set thumbnail, post format: gallery, wp 2011 (6 posts)

  1. CharlieCanfield
    Member
    Posted 1 year ago #

    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

  2. Santosh
    Member
    Posted 1 year ago #

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

  3. CharlieCanfield
    Member
    Posted 1 year ago #

    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?

  4. Santosh
    Member
    Posted 1 year ago #

    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.

  5. CharlieCanfield
    Member
    Posted 1 year ago #

    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...

  6. Santosh
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic