How to make my custom widget appear within WordPress widgets? Plugin development

Updated my answer based on your comments. First of all; Please read how to create a plugin: https://codex.wordpress.org/Writing_a_Plugin Secondly, create a folder and your file in the wp-content/plugins directory. Add this sample plugin code below. After that please activate the plugin from Dashboard. old answer When you register widget as a plugin you need to … Read more

Custom Meta Box (SELECT) Not Saving

So I figured out a work around by butchering this and placing in parts from other solutions found online. This is the code I got working correctly. functions.php: /* ** START ** ADDS A NEW META BOX TO PAGES */ // register the meta box add_action( ‘add_meta_boxes’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page.php’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page-new.php’, … Read more