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.

Featured Image

  1. I've looked around a bit and have not found the best way to add the uploaded image to set as the "featured image" using post fields?

    http://pastie.org/2270372

    I tried the above code in my functions.php file but this gave me errors....

    Any other thoughts about an uploaded image being set as the theme's featured image?

    Thanks for the support!

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  2. 1.6 which is in beta right now has the ability to set the featured image.

    What sort of errors did you get when you implemented that code? And which post were you referencing? There were two solutions posted here, one new and one older, and the older one no longer works.

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  3. The newer one did not work when added to my featured.php file...

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  4. Can you post the code you used and what the results were, error or otherwise? Thanks.

    Also, you meant functions.php not featured.php I hope?

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  5. I posted this code http://pastie.org/2270372

    to functions.php

    sorry,,,,I will get right back on the error

    I also just tried the new beta 6.1 and it gave me please contact support after trying to set the featured image?

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  6. Let's get the featured image working with your current installation then, and avoid complicating things with the 1.6beta1.

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  7. Parse error: syntax error, unexpected $end in /home/wesleysoccer/webapps/bridal/wp-content/themes/infocus/functions.php on line 39

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  8. OK, can you post your complete functions.php to pastie.org or pastebin.com. Sounds like you pasted the code into the middle of something.

    That's not an error in executing this code, that's just a syntax error in functions.php, possible due to how or where this code was pasted.

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  9. http://pastie.org/2450278

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  10. Remove the opening <?php in line 10 and it will get rid of this error. After that, we will need to see if this code works to set the featured image for you. You mentioned this is the old code, which might still error out but with a different error. If that happens, please post that error.

    Thank you for posting your code.

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  11. WOW...IT WORKED!

    You are the man!

    Posted 13 years ago on Monday August 29, 2011 | Permalink
  12. Awesome. Glad you got that sorted out. Please let us know if you need any additional assistance.

    Posted 13 years ago on Monday August 29, 2011 | Permalink

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