Split the_title

The best way to go about it is using the the_title filter. Put the following code in your functions.php. add_filter( ‘the_title’, ‘wpse_64467_prefix_title’, ”, 2 ); function wpse_64467_prefix_title( $title, $id ){ $header_title = get_post_meta( $id, ‘header_title’, true ); $title = ( $header_title ) ? $header_title . ‘ – ‘ . $title : $title; return $title; } … Read more

Display Custom Field for a Specific Role, but not for Admin

You can use the WP_User class and the has_cap($role) method. The show_user_profile action passes a WP_User object as a parameter to the called function. http://codex.wordpress.org/Class_Reference/WP_User#has_cap.28.24cap.29 add_action(‘show_user_profile’, ‘my_add_extra_profile_fields’); function my_add_extra_profile_fields($user) { if ($user->has_cap(‘subscriber’)) { //Code here } }

How can I save custom meta to one global value?

Consider that when you add a metabox, nothing force you to save the value in post meta field, you can save a global option from metabox as well. function my_add_custom_box() { $screens = array( ‘post’ ); // add or replace with your cpt name foreach ( $screens as $screen ) { add_meta_box( ‘my_sectionid’, __( ‘Featured … Read more