• Resolved knucklebasher109

    (@knucklebasher109)


    Hi,

    I’m trying to use a featured image on a page.
    I click the featured image link on the lower right side of admin/new page.
    select an image, and it shows up in the box, but not when I preview the page.

    Any help?

    Thnx,

    Bill

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

    (@deepbevel)

    Your theme may not have >

    <?php the_post_thumbnail();?>

    in it’s output code, or possibly may not have the function for it.
    You can try to add the above tag to your output and see..

    the_post_thumbnail

    Thread Starter knucklebasher109

    (@knucklebasher109)

    HI deepbevel and thank you
    Obviously you have a deeper understanding than I
    Where would I “add the tag to my output”

    Bill

    deepbevel

    (@deepbevel)

    you’ll proabably want it in your main posts page (loop.php or index.php) and category.php/archive.php, depending on your theme. Maybe single post too, unless you plan to embed full size images for your posts.

    whereever you use it, it normally goes after the title but before the content:

    the code for your content will look something like this:

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

    So you need to find that and put the tag above it.

    Thread Starter knucklebasher109

    (@knucklebasher109)

    Thank You

    deepbevel

    (@deepbevel)

    oops,

    you’ll also want it above “the_excerpt” if you are using excerpts. the code will look like that for the_content, but it will say “the_excerpt” instead. So place the tag above just the same.

    it may be that your theme aready has the tag and something else is wrong, let’s hope not..:)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Featured Image’ is closed to new replies.