I'm having problems theme settings when changing the URL of a wordpress site using the Organic Theme's Adventure theme.
I made some scripts to change the functions in the database, which is ok! And it works with other themes perfectly.
However, the theme Adventure from the Organic Themes company uses a single column of the wp_options table to store the settings.
Every time I change the url (with a different size) the theme settings are lost.
I noticed that they work with a strange pattern (to my limited knowledge), storing the theme settings in a single column, using the link size to generate the settings.
Here's how you set it in the option_value column:
s:12:"header_image";s:62:"http://www.yoursite.com.br/wp-content/uploads/2015/06/logo.jpg";
Notice that the number after the s: represents the length of the string ahead: s:62:
is the length of the string logo.jpg p>
Changing the url to link I have to adjust not only the url but the size indicated in s:XX
.
Does anyone know of any way to do this update? Via plugin or code?
It takes a lot of time to redo the theme settings, and if the site is restored, it will be unconfigured for a few minutes until the theme setting is completely redone (again).
Thank you!