After database migration, theme mods don't show
My Wordpress installation has only one theme which is active. The wp_option
entry for it shows there are 31 theme mod entries.
a:31:{s:18:custom_css_post_id;i:5248;s:30:theme_settings_api_keys_google;s:39:xxx.....etc..;s:28:theme_settings_xxx;........etc...etc...etc....;s:11:custom_logo;i:5810;}
however when I run get_theme_mod( 'my_mod_x' ))
nothing comes is returned.
So too when I run on the command line: wp theme mod get --all --allow-root
. All I get is:
+--------------------+-------+
| key | value |
+--------------------+-------+
| custom_css_post_id | 5248 |
+--------------------+-------+
Can anyone tell me what would cause WordPress to think there is only one theme mod when there is supposed to be many?
Topic get-theme-mod migration database Wordpress
Category Web