• 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?

    https://www.ads-software.com/extend/themes/twentyten/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Have you checked page.php or single.php ?

    Thread Starter EnmnM

    (@enmnm)

    I am running this locally, for now.

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

    Thread Starter EnmnM

    (@enmnm)

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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    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;
    https://codex.www.ads-software.com/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)

    Thread Starter EnmnM

    (@enmnm)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Theme: Twenty Ten] Where is the put-the-featured-image-thumbnail on the main page located?’ is closed to new replies.