2
I’m having trouble in the theme settings by 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 works with other themes perfectly.
However, Organic Themes' Adventure theme uses a single table column wp_options to store the settings.
Every time I change the url (with different size) the theme settings are lost.
I noticed that they work with a strange pattern (for my limited knowledge), storing the theme settings in a single column, using the link size to generate the settings.
Follows as arrow in the database, in the column option_value:
s:12:"header_image";s:62:"http://www.yoursite.com.br/wp-content/uploads/2015/06/logo.jpg";
Note that the number after the s: represents the size of the string in front: s:62:
is the size of the string with the image logo.jpg.
Changing the url to http://newsite.com.br I have to adjust not only the url but the size indicated in s:XX
.
Does anyone know any way to do this update? Via plugin or code?
It takes a lot of time to redo the settings of the theme and in case of restoration of the site, this will be disfigured for a few minutes until the configuration of the theme is all redone manually (again).
Grateful!
Thanks for the answer... really, any and all plugin or migration system I could test couldn’t meet me contentedly. I developed a very "simple" bash script to resolve the issue and solved the problem. Should I post my script here? Abs
– Evert