WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to Add Post Thumbnail in WP 2.9 Beta 1 (16 posts)

  1. equalmark
    Member
    Posted 4 years ago #

    I have just downloaded and installed the beta version of WordPress 2.9 and I am looking for the new Post Thumbnail option that I have been reading about. I understand about the new template tag the_post_image() but should there be an extra panel in the write post page to add the image? If so where is it?

    Screenshot below of my write post page:

    http://img195.imageshack.us/img195/5329/screenshot20091117at155.png

  2. betadog
    Member
    Posted 4 years ago #

    Same here. Can't find the thumbnail panel.

  3. equalmark
    Member
    Posted 4 years ago #

    I have also checked in the screen options and it is not in there un-ticked either. Anyone any ideas?

  4. Rasheed Bydousi
    Member
    Posted 4 years ago #

    Same here. it simply had been disappeared after upgrading with wordPress beta tester.

  5. wlindley
    Member
    Posted 4 years ago #

    The 2.9 beta tries to be smart about themes, and will only enable the post thumbnails if the theme, in its functions.php, calls:

    add_theme_support('post-thumbnails');

    Of course you can manually add that for now, if you have something like the auto navigation plugin which is 2.9-ready and will use them for displaying sub-pages, even if your theme does not support them.

  6. equalmark
    Member
    Posted 4 years ago #

    Thanks for that. So what exactly do I need to add to my functions.php. Would the following work:

    <?php add_theme_support('post-thumbnails'); ?>

    Seems strange that it doesn't just work out of the box. I thought that was the whole point?

  7. equalmark
    Member
    Posted 4 years ago #

    I can now confirm that putting the above code into the functions.php does activate the panel. Thanks wlindley!

  8. Rasheed Bydousi
    Member
    Posted 4 years ago #

    Thanks wlindley.

  9. Astriker
    Member
    Posted 4 years ago #

    I added it, and it shows on the right, set thumbnail, but I click on it, it tells me to pick the image, and when I click edit image, to make only part of it thumbnail, the save button is blue, and I don't think its saving it. Any suggestions?

  10. AlternativePhotography
    Member
    Posted 4 years ago #

    @Astriker There is a link... not a button that says "Use as thumbnail". At least in my panel, this adds it as a thumbnail.

    For those like me who are not too hot on php, it's:
    add_theme_support('post-thumbnails');
    and not:
    <?php add_theme_support('post-thumbnails'); ?>
    that works for me when added to functions.php

  11. Mark
    Member
    Posted 4 years ago #

  12. Gouri
    Member
    Posted 4 years ago #

    I had been wondering why is the thumbnail option not showing in the admin panel of my blog. The mystery is resolved now. Thank you all..

  13. guirigales
    Member
    Posted 4 years ago #

    I tried the suggestion by alternative and I have lost my site. Its all in white. I have reuploaded the original functions.php and nothing.

    Any ideas?

    thanks

  14. pfeiffel
    Member
    Posted 4 years ago #

    Uffff. Same problem here. I'd really appreciate if someone could give me a hint or post a link with an error fix. I think that's a bug or something.

  15. dannorcott
    Member
    Posted 4 years ago #

    That blank screen means you have a PHP error, but your site isn't set up to show you the contents of the error, so you get a blank page.

    If you create a new file with the name .htaccess in the root of your site and put the following into it (or, if you already have a .htaccess, add this line to it):

    php_flag display_errors on

    and then revisit the page, you should see the error output. It'll probably be something simple, but if you don't understand, paste the error and the lines it complains about here and someone will help I'm sure :)

  16. jeffreyhmartin
    Member
    Posted 3 years ago #

    I read several explanations for how to get the Post Thumbnail function to show up in my Post Editor (WordPress version 3.0.1), and none of them worked until I created a functions.php file in my theme with the following code, as recommended by Matt Brett at http://mattbrett.com/workshop/2010/wordpress-post-thumbnails-revisited/

    <?php
    if (function_exists('add_theme_support')) {
    add_theme_support('post-thumbnails');
    }
    ?>

    Thanks to Matt.

Topic Closed

This topic has been closed to new replies.

About this Topic