1774 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.

1501 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
+9 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

1501 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
+9 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

1774 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?

1774 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?

1774 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?

1501 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
+9 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

1774 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.

1774 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

137 posts WordPress Wizard
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
+6 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!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by