Styling admin page rows in order of importance (checkboxes)

The problem you are seeing is that you have your declarations of the same importance from a CSS standpoint. If you add another style to give it more preference: #cqrm-current-item-list tr.cue-deletion.cue-coming-soon, #cqrm-current-item-list tr.cue-deletion.tr.cue-coming-soon *{ background-color: #fbb !important; filter: alpha(opacity=100) !important; } Or move the cue-deletion below the cue-comingsoon declaration you should find things work as … Read more

Admin Logged In Notify Globaly

I think you should add an entry in database when admin log in and can remove or update that entry when user logout. there might be a situation when admin leave website without logged out for that you can set time for auto logout. I don’t think there is a way to find out if … Read more

Make custom user_meta as permalink for post

After searching a lot i finally came up with this solution. My custom post type is “facility” and the custom_user_meta=”organization_name“. First go to http://localhost/wp-admin/options-permalink.php and choose custom structure – in the text box put /%organization_name%/%postname%/ After that put the below given code in functions.php add_action(‘init’, ‘tdd_add_rewrite_rules2’); function tdd_add_rewrite_rules2(){ // Register custom rewrite rules global $wp_rewrite; … Read more

Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]

The changes were being made in a stylesheet that is auto-generated by the parent theme. In the specific case of the Cherry parent theme (which is widely used in templates sold on themeforest, templatemonster etc), you cannot make stylesheet changes in reserved files such as main-styles.css (Despite them existing in a child theme). The solution … Read more

How to add next height number in Order Attributes inside the Add new page. [duplicate]

add_action( ‘admin_footer’, ‘my_action_javascript’ ); // Write our JS below here function my_action_javascript() global $wpdb; $pageposts = $wpdb->get_var(“SELECT max(menu_order) FROM $wpdb->posts WHERE post_status=”publish” AND post_type=”post_trainers””); ?> <script type=”text/javascript” > jQuery(document).ready(function($) { var data = { ‘action’: ‘my_action’, ‘whatever’: <?=$pageposts?> }; $.post(ajaxurl, data, function(response) { if($(‘#menu_order’).val()==” || $(‘#menu_order’).val()==’0′) $(‘#menu_order’).val(response); }); }); </script> <?php } add_action( ‘wp_ajax_my_action’, ‘my_action_callback’ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)