Wordpress Sidebar/Widget Menu different on remote server
I've developed a Wordpress theme locally and everything is groovy. On uploading to our production server and going back into the Widgets area the backend screens are different and my widgets are not displaying.
Here's the sidebar code:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
</ul>
</li>
<li>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php endif; ?>
Here is a screensh开发者_JAVA百科ot of what it looks like in both server environments.
So the questions(s): Why would they be different? How can I fix the Remote Server, or how Can I refrence the way the Remote Server is setup correctly in my theme.
I believe widget data is stored in the wp_options table, have you updated the proper values in there?
Be careful transferring that table as it may screw up your site (fairly easily fixable though).
http://wordpress.org/support/topic/where-is-widget-data-stored-in-the-database
The above link may help, just do the search as instructed and try moving the returned value to prod. PLEASE BACK UP THAT TABLE BEFORE DOING SO.
I don't want to be hunted down and killed </sarcasm> if my answer eradicates your site.
-p
精彩评论