currently i add a custom billing field in woocommerce by function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_phone_new'] = array( 'label' => __('Phone 2', 'woocommerce'), 'placeholder' => _x('Phone 2', 'placeholder', 'woocommerce'),...
Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes. I am...
I am using the advanced custom fields plugin for posts. I would like to know where custom fields are stored. I checked the wp_posts table. However, I could not...
Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. without enough detail may be edited or...
I’m trying to come up with a query to sort by multiple orderby values. Here’s what I have so far: $dept_id=2; $query=new WP_Query(array( 'post_type'=>'wpcontactus', 'nopaging'=>true, 'post_status'=>array('publish', 'pending', 'future'), 'meta_key'=>'wcu_dept',...
I have a custom post type Event that contains a starting and ending date/times custom fields (as metaboxes in the post edit screen). I would like to make sure...
I would like to create a wp_query that would return posts meta inside the posts array. $args = array ( 'post_type' => 'page', 'meta_key' => 'someMetaKeyName', ); // The...
I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page. Here are a few solutions I came up with:...
I have a custom post type called ‘software’, contained within are various custom fields such as subtitle, price, screenshots, download link, etc. I created a function to allow use...
Ok, so I have registered a few custom post types and a few taxonomies. Now, for the life of me, I cannot figure out the code I need to...