What plugin will allow me to redirect 404 errors to a specific page?

add these to your function.php add_action( ‘template_redirect’, ‘custom_redirect’, 1 ); function custom_redirect() { $direction = get_permalink( 12 ); // Or whatever the page_id is … if ( is_404() ) wp_redirect( $direction ); } There. But it still not tracking the 404 errors. Unless you add more specific codes in the function which counts all the … Read more

Hide extra menus from WordPress Dashboard

Update As the Answer wasn’t best practice, I replace it with a link to my simple plugin that even does more than the OP needed. You can take it as reference on how to (re)move different things in the admin UI. It’s freely available Open Source Software. I encourage you to fork it. Functionality The … Read more

Set WordPress TinyMCE Editor To Readonly

You can hook into tiny_mce_before_init to modify the TinyMCE arguments to set the readonly attribute. For example (using PHP 5.3): add_filter( ‘tiny_mce_before_init’, function( $args ) { // do you existing check for published here if ( 1 == 1 ) $args[‘readonly’] = 1; return $args; } ); This will make the TinyMCE readonly, however it … Read more

How to integrate blog status?

You can use the option API to set the blog_status and then display it. If you want to use blog description for the purpose you already have the UI available to set it from Setting->General and set the tag line to update your blog status. Then you can display the tag line anywhere in your … Read more

Advanced Custom Fields

In Advanced Custom Fields the field editing screen where you add in the required fields and assign them to post edit screens did you choose image URL or Attachment ID for the image field? It sounds like you’ve got it set as image URL which will just return the URL to the originally uploaded file … Read more

Why plugin ajax response is -1?

according to wordPress jedi, scribu, you can now enqueue scripts from inside the plugin handler. http://scribu.net/wordpress/conditional-script-loading-revisited.html you were echoing things and in shortcode handling you have to return. i ran into some issues getting the script to work by returning the script, so i moved it to an external file which definitely works. function myajax(){ … Read more