SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post thumbnails not working in backend

    WP 3.3

    Adding thumbnail support to theme does not display an option to set the post thumbnail when creating post, nor is there anything in the screen options.

    The only option to show is to set a featured image.

    Setting the theme thumbnail support in the functions.php file
    PHP Code:
    add_theme_support'post-thumbnails' );
    set_post_thumbnail_size130130true ); 
    Has this feature been dropped in ver.3.3?
    I can't find any thing that say's it has.

    Is there a new way to set thumbnails?

  2. #2
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    What options are you seeing when you click on the Upload/insert media (Media Library browser) above the editor?
    Maleika E. A. | Rockatee | Twitter | Dribbble



  3. #3
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just get the normal options, whether uploading, or using a previously uploaded image;
    Insert into post
    Set as Featured Image
    Delete


    Seems to me I should have a meta box on the right of the editor to set the thumbnail.

  4. #4
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    No, WordPress only has the featured image box, no other thumbnail boxes, so your panel displays correctly.
    Maleika E. A. | Rockatee | Twitter | Dribbble



  5. #5
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, am I setting the featured image or inserting into post?

    How does this know what is the thumbnail?
    PHP Code:
    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    } else { 
    ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" />
    <?php ?>
    Got it, have to set Featured image.

  6. #6
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    You can specify which size you want by adding the according parameter, like so:

    Code PHP:
    <?php the_thumbnail('medium'); ?>
    Maleika E. A. | Rockatee | Twitter | Dribbble



  7. #7
    SitePoint Zealot
    Join Date
    May 2007
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using a function for the size
    PHP Code:
    add_theme_support'post-thumbnails' );
    set_post_thumbnail_size130130true ); 
    Plus I always size and optimize all my images prior to uploading.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •