WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Ten
Where is the put-the-featured-image-thumbnail on the main page located? (8 posts)

  1. EnmnM
    Member
    Posted 1 year ago #

    So I found that I didn't have to enable the thumbnail code in the functions.php, that WordPress already buried the command in a subfolder. However, I would like to make some changes to the thumbnails that appears on the main page. I assume I am looking for something like <?php if(function_exists('has_post_thumbnail') && has_post_thumbnail()) but I can't find it in the loop, single loop, or attachment php files. WHERE is it?

    http://wordpress.org/extend/themes/twentyten/

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    make some changes to the thumbnails that appears on the main page.

    by default, Twenty Ten does not have thumbnails on the main page.

    can you post a link to your site to illustrate what you mean?

  3. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Have you checked page.php or single.php ?

  4. EnmnM
    Member
    Posted 1 year ago #

    I am running this locally, for now.

    I have checked page & single...could have missed it, though.

  5. EnmnM
    Member
    Posted 1 year ago #

    It's just not there. The only code I found like it is in the header.php file.

  6. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you not do a string search on something like "has_post_thumbnail", of the whole project and trace it back to its roots?

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    there is simply no thumbnail image output in the index page or archive pages of an unedited Twenty Ten - full stop.

    I would like to make some changes to the thumbnails that appears on the main page.

    please post a link to your site to illustrate what you have right now.

    are you working wth an unedited Twenty Ten theme?

    if you want to add a post thumbnail to the main index posts, you need to edit loop.php and add the code there;
    http://codex.wordpress.org/Function_Reference/the_post_thumbnail
    for instance in this section:

    <div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->

    (the one nearest to the end of the file)

  8. EnmnM
    Member
    Posted 1 year ago #

    Thanks for everyone's help. The main problem is that I am getting confused between 2010's "featured image", which is really their new word for "thumbnail." I know the difference, but I'm getting confused anyway as I try to think this through.

    In any event, I am going to abandon this programming thought and post a new request for help, as I've found another way to accomplish what I want to.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic