Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm a relative newbie to WP and PHP in general, but now that I'm into it, I've caught the "WP fever" and have ditched asp.net.

I finally found a quality theme that I like and I'm considering buying it; I have 4 blogs and counting, but I can't get the basic version of the theme to display the set featured image link in my WP admin when creating a post or page. Vanilla install, WP 3.5.1.

The support forum isn't that good, and nobody's responded, but I'm quite sure they didn't build this function into their theme.

Is it possible to add the set featured image function myself, even if I'm not a PHP junkie (yet)? Any guidance in this regard (whether I wanna hear it or not!) would be greatly appreciated!

share|improve this question
add comment

1 Answer

You can add this line to your functions.php file to add the post thumbnail option to all post types:

add_theme_support( 'post-thumbnails' ); 

If you want it for only one post type, you pass an array of post type names as second argument:

add_theme_support( 'post-thumbnails', array( 'post' ) ); #shown in posts only

To display the thumbnail in your template files:

if ( has_post_thumbnail() ) {
    the_post_thumbnail();
} 

Read about Post Thumbails and add_theme_support().

share|improve this answer
    
Hi rrikesh. Thank you for the time in reading and responding to my question! The functions.php in my theme seems to be encoded; it's just a bunch of numbers and characters that make no sense. But I think this will provide me with some direction. Thanks again for sharing the information, and I'll be reading those links right now! –  Jason Weber Jan 30 '13 at 10:26
1  
Encoded? Are you using a legitimate theme? It might be some backdoor stuff that can be used to gain unauthorized access to your website. –  RRikesh Jan 30 '13 at 10:30
    
Well, yes ... it's the Flexibility3 theme ... a lot of people use it. But it looks like this: <?php $QD441FA06E336C09E3C75F4CDE5E7CB88="eNptmU2XqjCXhX/SS0BqXQc9KIWAaEIR8gGZAXEVkoCU‌​Wor8+j7Vg+5Jj+6qW1ZIcs7Z+9kSFdfn8ds7MhUOrc9cd/n8OMS45F6/O+DdQSTyt/a3VleHbzPK9+nyu‌​ZyGeImKuWLi8J1fdleTsld++ffskv6l/3edsO/G7bUuw7V5/6P7y/UZFdf/fA2v//x97vDpHU/vK93b/1‌​sf1toJuz0U5a4o8c61I33qRL4PqYb1Nt+k3Cyk8I7Sk/tDdP1uUuZ10fV5CnbX7v/2+VtX2bNJ4t ..... and so on; the entire functions.php is like that. hehe ... I'm sure there's still gotta be a way, though ... –  Jason Weber Jan 30 '13 at 10:35
1  
downloaded from flexibilitytheme.com ? If yes, use at your own risk. –  RRikesh Jan 30 '13 at 10:37
1  
Never use a anything that has hidden or obfuscated codes in it. I don't know the theme, it might be good, but I wouldn't feel safe with it. There are plenty of free themes on wordpress.org/extend/themes. –  RRikesh Jan 30 '13 at 10:51
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.