- Attended a Community Meetup
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Envato Staff
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
Hey Chris,
I answered your questions on Twitter but for the benefit of everyone here I’ll repeat it.
You asked about auto import and were experiencing some issues. Auto import works under the assumption you are upgrading from a 1.x to 2.0.8 and have not done any of the in between version as the ‘option_tree_settings’ already exists. Also, if you activate OT before activating your theme the default options will already be loaded and thus stop the auto import. We did chat about adding a force import button on the import page which I am looking into for those that need it after installing any of the 2.0 – 2.0.7 versions. That will be coming shortly. Otherwise, everything should be working well now and issues where it’s not auto imported are due to the above reasons.
Cheers, Derek
- Attended a Community Meetup
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Envato Staff
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
andiszek said
Derek, let me also thank you very much for this plugin!i have a question regarding the new OT version:
in v 1.8.1 you`ve removed get_option_tree() in the WordPress admin area due to theme conflicts.
can i use the new 2.0+ version in the Admin area, to add for example Header & Footer logos ? (and also maybe a custom login logo)
thanks, andi
The get_option_tree() & ot_get_option() functions are both available in the admin area and front-end. However, use the ot_get_option() function instead as it’s the one that will be support in future versions, not to mention it’s a bit more flexible than the old one.
- Attended a Community Meetup
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Envato Staff
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
@theMOLITOR @Ayoubiz Thank you very much for the donations!
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
I’m trying to hide some fields from a List, through jQuery. I’m checking for a “select” field from that List and based on it’s value i hide various fields. I’ve managed to do most of it, but i can’t select a textarea, because it doesn’t have a class applied to it. All the other fields that i’ve used(text & upload) have custom classes applied, but the textarea doesn’t have any class(even if i set one)..
Is this intentional or it is a bug? Or i’m not doing it right?
Thanks for your help!
- Attended a Community Meetup
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Envato Staff
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
RubenBristian said
I’m trying to hide some fields from a List, through jQuery. I’m checking for a “select” field from that List and based on it’s value i hide various fields. I’ve managed to do most of it, but i can’t select a textarea, because it doesn’t have a class applied to it. All the other fields that i’ve used(text & upload) have custom classes applied, but the textarea doesn’t have any class(even if i set one)..Is this intentional or it is a bug? Or i’m not doing it right?
Thanks for your help!
I’ll take a look at it and push it up in the next version.
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
Hi Derek
I’m doing something wrong.. i can’t manage to get info from the metaboxes.. What should i do? If i’m using the ot_get_option() function i get nothing, so i’m obviously doing something wrong..
- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- Beta Tester
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
RubenBristian said
Hi Derek I’m doing something wrong.. i can’t manage to get info from the metaboxes.. What should i do? If i’m using the ot_get_option() function i get nothing, so i’m obviously doing something wrong..
Ruben, metaboxes handle custom fields, not options, so you should use get_post_meta($post_id, $key, $single);
So get_post_meta($post_id, ‘my_meta_option’, true);
Parker
- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- Beta Tester
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
Additionally,
if metaboxes were handling options like for the theme options, you would have the same option for each post with that custom meta, so in that case would be impossible to set a specific and different value for each post, but you would have a global value… and that wouldn’t be that cool 
Parker
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
of course .. i’m so stupid!
thanks Parker!
Is there a way to prepopulate list-item option, with list items which have different settings in them? 
