Sortable column with custom data by date

Thanks a lot to @Sally CJ for the answers. It works with changing format of start_at field and adding key in array like this : function my_sort_custom_column_query( $query ) { $orderby = $query->get( ‘orderby’ ); if ( ‘dateevent’ == $orderby ) { $meta_query = array( ‘relation’ => ‘OR’, ‘_start_at’ => array( ‘key’ => ‘_start_at’, ‘type’ … Read more

Custom Posttype URL

I tried your code and everything seems to work fine except ‘rewrite’ => $rewrite,, so I just commented this out, flushed permalinks and it works as expected. So I have this function jobs_post_type() { $labels = array( ‘name’ => _x( ‘Jobs’, ‘Post Type General Name’, ‘OceanWP’ ), ‘singular_name’ => _x( ‘Job’, ‘Post Type Singular Name’, … Read more