An unidentified error has occurred when deleting a category

Your taxonomy registration in your example is showing this: function insurance_all_category(){ $labels = array( ‘name’ =>_x( ‘Insurance all category’, ‘taxonomy general name’ ), ‘singular_name’ => _x( ‘Category’, ‘taxonomy singular name’ ), ‘search_items’ => __( ‘Search Category’ ), ‘all_items’ => __( ‘All Categories’ ), ‘parent_item’ => __( ‘Parent Category’ ), ‘parent_item_colon’ => __( ‘Parent Category:’ ), … Read more

Notifications Bar on home page only

Using the very example from the Codex in the Settings API section. Put it in the theme’s functions.php: add_action(‘admin_init’, ‘eg_settings_api_init’); function eg_settings_api_init() { add_settings_section( ‘eg_setting_section’, ‘Example settings section in reading’, ‘eg_setting_section_callback_function’, ‘reading’ ); add_settings_field( ‘eg_setting_name’, ‘Example setting Name’, ‘eg_setting_callback_function’, ‘reading’, ‘eg_setting_section’ ); register_setting(‘reading’,’eg_setting_name’); } function eg_setting_section_callback_function() { echo ‘<p>Intro text for our settings section</p>’; } … Read more

WordPress blog fails to open

Normally, you’ll get those kinds of results because you have file permissions issues. The files all need to be readable and executable by whatever user the WordPress installation is running as (e.g. on most typical webservers, including if you’re running LAMP/MAMP locally, it’s usually something like the www user and staff group). You’ll need to … Read more

My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory

I’m still having trouble following your question. You say you’re familiar with giving WP it’s own directory, but I think you may be confusing installing a second WordPress install in a separate sub-directory with giving WordPress it’s own sub-directory. Possible file structures: Single site: /index.php (and all the rest of wordpress installed at root) Multiple … Read more

Ajax in wordpress [duplicate]

Write below code in functions.php of your active theme <script type=”text/javascript” > jQuery(document).ready(function($) { var data = { ‘action’: ‘get_data’, ‘testparam’:’hello’ //optional to pass any extra param }; $.ajax(ajaxurl, data, function(response) { alert(‘Response: ‘ + response); //Append response in your result wrapper }); }); </script> <?php add_action( ‘wp_ajax_get_data’, ‘get_data_ajax_func’ ); function get_data_ajax_func() { global $wpdb; … Read more

Child Plugin Admin Panel

I’m assuming you’re asking how to remove the first action, which the plugin has created? Removing an action is really easy – all you need to do is call remove_action like this: remove_action(“admin_init”, “backend_plugin_css_scripts_mail_bank”); Then add your replacement action. You need to ensure that you remove the action after it has been added (because otherwise … Read more

Taking over a WordPress site

You are using an old version of WordPress. Because you do not have proper access to the panel, you need to update as follows: Access your FTP and copy the files that are there to your computer as a backup. Download the latest version of WordPress here: https://wordpress.org/ If they are zipped, extract the downloaded … Read more