Custom Meta Box (SELECT) Not Saving

So I figured out a work around by butchering this and placing in parts from other solutions found online. This is the code I got working correctly. functions.php: /* ** START ** ADDS A NEW META BOX TO PAGES */ // register the meta box add_action( ‘add_meta_boxes’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page.php’, ‘my_custom_field_cityselect’ ); add_action( ‘load-page-new.php’, … Read more

Including metaboxes from custom post types in global search — continued

I’ve figured out a fix. First, to fix bad results for an empty search, I require that (!empty(get_query_var(‘s’)) Before setting the “meta_query” query variable in my plugin. I thought the fix would be with the posts_request filter, but it continued to replace select SQL_CALC_GET_ROWS wp_posts.ID with select SQL_CALC_GET_ROWS wp_posts.* Even when I replaced the * … Read more

adding extra wordpress user info from registration form

You can use usermeta wordpress function to add extra information for user, below code will help you function crm_wp_insert_user() { if ( isset($_POST[‘crm_customer_submitted’] ) ) { $firstname = sanitize_user( $_POST[‘firstname’] ); $lastname = sanitize_user( $_POST[‘lastname’] ); $project = sanitize_user( $_POST[‘project’] ); $email = sanitize_email( $_POST[’email’] ); $phone = sanitize_user( $_POST[‘phone’] ); $address = sanitize_user( $_POST[‘address’] … Read more

Meta Query Filtering not working on Custom Meta Box using Radio Buttons

I think I found another way. Seems to be working great. /****** CUSTOME POST-TYPE ******/ <?php // CREATE CUSTOME META BOX function r_create_mb_bids(){ add_meta_box( ‘r_bid_visibility_mb’, __( ‘ Bid Visibility’, ‘bids’ ), ‘r_bid_visibility_mb’, ‘bids’, ‘normal’, ‘high’ ); } add_action( ‘add_meta_boxes’, ‘r_create_mb_bids’ ); // DISPLAY IN ADMIN function r_bid_visibility_mb( $post ){ global $post; $bid_data = get_post_custom($post->ID); $visibility … Read more