PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Fatal error when using the_post_thumbnail code snippet

  1. Hi - I tried the solution from this post http://www.gravityhelp.com/forums/topic/auto-setting-the-the_post_thumbnail? to auto set the image uploaded to be the featured image. When I do, it crashes my theme and says that the_post_thumbnail is already defined in my wp-includes folder in the page.php file. When I browse my wp-includes folder I don't even see a page.php file, which is odd.

    Is this fatal error something to do with my theme do you think? And how could I go about getting this piece of code to take in my functions.php file?

    Thanks!

    Posted 8 years ago on Monday July 25, 2011 | Permalink
  2. Hi Morality28,

    That snippet is a bit outdated now. Give this a shot: http://pastie.org/2270372

    Posted 8 years ago on Monday July 25, 2011 | Permalink
  3. Thanks.....that code worked perfectly!

    Posted 8 years ago on Tuesday July 26, 2011 | Permalink

This topic has been resolved and has been closed to new replies.