How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?

pre_get_posts the right hook you need to use. function CPT_set_default_orderby($q){ global $pagenow, $typenow; if( is_admin() && ‘edit.php’ == $pagenow && ‘post’ == $typenow && !isset($_GET[‘orderby’]) ){ // to order by title $q->set(‘orderby’, ‘title’); // to orderby with meta key $q->set(‘orderby’, ‘meta_key’); $q->set(‘meta_key’, ‘expiration’); } } add_action(‘pre_get_posts’, ‘CPT_set_default_orderby’);

Create another TAG widget for posts

You’ll need to use register_taxonomy with hierarchical set to false: function add_custom_taxonomies() { // Add new “Locations” taxonomy to Posts register_taxonomy(‘keyword’, ‘post’, array ( ‘hierarchical’ = false )); } add_action( ‘init’, ‘add_custom_taxonomies’, 0 ); For more information: – WordPress API – Tutorial @ Smashing magazine

In the Edit Post page how do I modify with jQuery the status select list?

Your first line works for me when I type it in the console of Chrome: jQuery(‘#post_status option[value=”draft”]’).text(‘Approve’); so I assume your problem may be that the element you want might not be loaded yet from where you run your script. Try wrapping it in this: jQuery(document).ready(function() { (function ($) { $(‘#post_status option[value=”draft”]’).text(‘Approve’); })(jQuery); });

Can’t create posts with WP DB Abstraction Plugin

Finally got it, my problem was in wp-include/post.php, due to bad translations of the queries from MySQL to SQL. I had to replace code in wp_insert_post function with this code: if ( empty($post_date_gmt) || ‘0000-00-00 00:00:00’ == $post_date_gmt ) { if ( !in_array( $post_status, array( ‘draft’, ‘pending’, ‘auto-draft’ ) ) ) $post_date_gmt = get_gmt_from_date($post_date); else … Read more

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