WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Featured image thumbnails showing up in posts, but not in pages (2 posts)

  1. liasuzuki
    Member
    Posted 1 year ago #

    Hi,

    I tweaked my content.php file with this:

    <p style="float:right; margin:10px; border:3px solid lightgrey"><?php if(is_single() || is_page())
    if ( has_post_thumbnail() ) {
    the_post_thumbnail('medium');
    }
    echo '';
    ?></p>

    Now my thumbnails are showing up on my posts exactly as I want. How do I now get them to do the same on my pages?

    Post example: http://aksb.org/2013/07/04/testimonial-jasons-second-intro-class/
    Page example: http://aksb.org/about/instructor/chris-ziliotto-teaching-apprentice/

    Thanks!

    Lia

  2. nickpeters
    Member
    Posted 1 year ago #

    Should it be somewhere in the content-page.php maybe?

    I was trying for the same, but the text doesn't 'fit'. Any Idea how to get it wright?

    Thanks in advance, Nick.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic