Saving an array to get_options
In order for it to save the data you need to hook your validate_dw_quote() onto to an action, such as admin_init or init. add_action(‘admin_init’, ‘validate_dw_quote’);
In order for it to save the data you need to hook your validate_dw_quote() onto to an action, such as admin_init or init. add_action(‘admin_init’, ‘validate_dw_quote’);
wordpress title and category as result
The common case of plugins seemingly going poof is lack of updates for >2 years, which makes them de-listed from search. In this case however plugin is clearly missing. This is either technical glitch of some kind (not too likely) or it had been removed from repository. The usual reasons are security vulnerabilities and license … Read more
The gallery plugin is loading it’s scripts before the jQuery migrate script which is being loaded by the jquery updater plugin <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/jquery-updater/js/jquery-2.1.0.min.js?ver=2.1.0″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/gallery-plugin/fancybox/jquery.mousewheel-3.0.4.pack.js?ver=3.5″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/gallery-plugin/fancybox/jquery.fancybox-1.3.4.pack.js?ver=3.5″></script> <script type=”text/javascript” src=”http://www.riccardo.it/newtech/wp-content/plugins/jquery-updater/js/jquery-migrate-1.2.1.min.js?ver=1.2.1″></script> This is causing a JavaScript error which is preventing other scripts from running. Try disabling the jQuery updater plugin and let WordPress … Read more
Figured it out – It had also created a “Page” which was still using the /faqs slug.
Okay, so I have done it. Reading about roles and capabilities: http://codex.wordpress.org/Roles_and_Capabilities A default set of capabilities is pre-assigned to each role, but other capabilites can be assigned or removed using the add_cap() and remove_cap() functions. New roles can be introduced or removed using the add_role() and remove_role() functions. Add a capability: http://codex.wordpress.org/Function_Reference/add_cap If you … Read more
A plugin or your theme is probably calling wp_enqueue_media() and instead of adding a check for admin page and early return they are allowing the scripts to load on every admin page. You need to deactivate all the plugins and switch to the default theme. If this solves your issue then activate your plugins one … Read more
Don’t use a function for the callback, use a class. Something like this: class Competition_Manager_Page { private $extra; public function set_extra( $value ) { $this->extra = $value; } public function render() { // show you page content, then: print $this->extra; } } You can extend the class’ functionality later. Now, when you register the menu, … Read more
get_post_field alone does not render shortcodes. Try echo do_shortcode( get_post_field( ‘post_content’, $post->ID) );
Putting plugin files into the theme is not recommend, quite the contrary. If you really have to change the plugin, create a Git repository for the plugin directory: cd plugindirectory git init Now create a new branch: git checkout -b modified Git will now hold the original state in the branch master and you can … Read more