Make a custom column sortable by a value from a different custom post type

(I was going to add this as a comment as it’s not a full answer, but I can’t yet…) I think you will need to use an SQL query as the standard meta_queries / orderby won’t work. Have a look at Custom Table Column Sortable by Taxonomy Query and http://wpdreamer.com/2014/04/how-to-make-your-wordpress-admin-columns-sortable/#sorting-posts-option-b for a couple of examples.

How to display a WordPress Custom Field only on a specific day of the week?

You are not checking the current date correctly. You need to use current_time() funciton to get current datetime according to WordPress configuration. Then, using PHP date() you can check what day of week current date is: // Get current date time of WordPress in Unix timestamp format $timestamp = current_time( ‘timestamp’ ); // Get day … Read more

How do I save Multiple fields in a meta box?

I would suggest you define a field names property on your class: class your_class { private $_fields = array( ‘firstname’, ‘lastname’, ‘sex’, ); public function prfx_meta_save ( $post_id ) { } } Now you can fully abstract your save handler: foreach ( $this->_fields as $field ) { if ( ! isset( $_POST[ $field ] ) … Read more