1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

I recently got one of my wp themes disabled because of this reason, and one of my features is heavily based on OptionTree, basically all it’s fields belong to it. Even SQL file does not work properly.

I really appreciate any help from OT developers and / or Themeforest authors.

1293 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+7 more
ImanGM says

Hi there,

As far as I know, XML import is deprecated. You should use a php file for importing settings and theme-options.txt to import theme options.

Maybe this could help too:

https://github.com/valendesigns/option-tree/issues/122

Cheers, Iman

1293 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+7 more
ImanGM says

Me again,

I forgot to mention that this method is not the best solution as well. You should write a function to import options once theme is being activated…

Cheers

1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

I have no idea what function.. is it the one on the link you’ve sent?

1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

Is there anyone out there using OT and has a solution for this issue please?

1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

Come on, nobody?

1293 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+7 more
ImanGM says

Me again,

Just try to export your theme options in text format in a file named theme-options.txt and put it in option-tree in your theme root directory.

If you upgrade to OT v2.1.3, This will automatically import your theme options once someone installs your theme. The function that I told is something that you should upgrade in the future. I guess this will help you to get your theme approve again for now…

Cheers, Iman

1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

I just update to the latest OT version, the post types that contain metaboxes from OT don’t import anything that I HAVE CUSTOM FIELDS. I updated to latest WP, OT, exported and then imported into another testing environment.

1702 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

BUMP

115 posts WordPress Wizard
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
CODE9RS says

Maybe a solution is try something like this:

- Create a function that will run when theme is activated or when a Import Options button is used - Inside this, create a var that has your theme options array (try use get_option to get the array and a PHP debug function to get the values, for example) - Then, use the function update_option to change these values automatically.

It works with Options Framework, but don’t know about OptionTree. Probably the concept is the same.

Thanks!

by
by
by
by
by
by