After database migration, theme mods don’t show

Question

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?

0
Meyer Auslander - Tst 1 month 2021-08-16T16:47:10-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse