Ready to get started?Download WordPress


The section how to automatically extract thumbnail?? (3 posts)

  1. tekehe
    Posted 2 years ago #

    How can automatically extract the pictures of the inside of the article as a thumbnail. Rather than every time to enter the Custom Field: homethumb.Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

  3. tekehe
    Posted 2 years ago #

    The following piece of code how to modify in order to automatically extract thumbnail?

    <?php $homethumb = get_post_meta($post->ID,'homethumb', true); ?>
    <img rel="nofollow" src="http://www.website.com/img/files/<? echo strtolower($homethumb); ?>.jpg" width="" height="" alt=""  />
    <center><b><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a></b></center>
    <center><?php the_excerpt(); ?></center>

Topic Closed

This topic has been closed to new replies.

About this Topic