Can’t sort Posts in wordpress Dashbaord

The only time I’ve seen this happen is with a theme using JavaScript that is conflicting with the JavaScript in the WordPress administration area. If this is what is happening to you then its a poorly-coded theme and you should change to a different theme. If this is a premium theme you should contact the … Read more

Allow user access to Dashboard only!

You can put this in your functions.php : function remove_menu_items() { global $menu; global $user_ID; if( $user_ID ) : /* Dashboard only acccess */ if( current_user_can( ‘dashboardvisitors’ ) ) : $restricted = array( __(‘Posts’), __(‘Pages’), __(‘Links’), [etc…] ); endif; endif; end ( $menu ); while ( prev( $menu ) ) : $value = explode( ‘ … Read more

Disable dashboard drag&drop

This will remove the draggable functionality from each widget: jQuery(‘.widget.ui-draggable’).draggable(‘destroy’) You have find a good way to inject this into your code, either through wp_enqueue_script() or echo it inline on the Widget page. To target a specific Widget you would have to do something along these lines: jQuery(‘.widget.ui-draggable’).each(function() { if (jQuery(this).find(‘h4’).text() == ‘Archives’) jQuery(this).draggable(‘destroy’); } … Read more

Pending Post review notification for contributors

Jonnny, I would highly recommend checking out Edit Flow. It does add a notification to the dashboard about Pending posts, as well as a host of other things. The plugin is aimed at organizing a whole team of content creators. It’s well described at editflow.org.

filter custom post type by meta key in dashboard

I’m assuming you’ve used the method in the question linked to and are using the restrict_manage_posts filter. add_action( ‘restrict_manage_posts’, ‘my_search_box’ ); function my_search_box() { // only add search box on desired custom post_type listings global $typenow; if ($typenow == ‘product’) { //On custom post type ‘product’ admin page. //Add code for search box here } … Read more

WordPress’ ALL post count info on its dashboard does not match phpMyAdmin’s ALL post count!

It all comes down to this. http://core.trac.wordpress.org/ticket/11889 Behind the scenes, WordPress does generate a place-holder post for your next one! And for that special post, it sets the post_status to a special one, ‘auto-draft’. Basically, the culprit is the post generated by WordPress without your knowledge. Once you know this fact, it is easy to … Read more

Custom User Field in Dashboard Widget

There’s get_the_author_meta() for such a task. (get_* functions normally don’t echo/print the output – hence the name). // Both values are *optional* get_the_author_meta( $field, $user_id ); Normally it’s only meant to be used inside a loop to get the data of the posts author, therefore it internally uses global $authordata;. But, you can also throw … Read more

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