Grabbing value of input field inside of array
Grabbing value of input field inside of array
Grabbing value of input field inside of array
Send email on creation of custom post type and use get_post_meta()
Custom fields: Split data from single custom field’s sub-array to separate custom fields when saving post
Questions regarding 3rd party plugins are considered off-topic here so you’lle need to dig into the plugins documentation or use its support forum to get an exact answer for you question. I would recommend you to var_dump() all of the post’s meta to see, if the data is actually saved with the wiki_test_select key or … Read more
There’s no native “Time Interval” field type in ACF, but you could: Use a third-party custom field like the “Date Range Picker” provided by ACF Extended (it’s a commercial plugin that adds features to ACF). Use 2 distinct native Date Picker fields for “from” and “to”, possibly inserted inside a Group. You may take advantage … Read more
I got that working 🙂 add_filter(‘rest_myRoute_query’, function($args, $request) { $fields = array(‘myCustomField’); foreach ($fields as $field) { if (! empty($request[$field])) { $args[‘meta_query’][] = array( ‘key’ => $field, ‘value’ => esc_sql($request[$field]), ); } } return $args; }, 10, 2);
Insert a custom field as a second email address to a completed order in WooCommerce
WP_Query – order with usort by custom meta
Yes, you’ll want to create custom metaboxes for those. This is a pretty good intro into how to do that. But you might want to think through a few things: Are you sure you want that added to ALL posts? If not, perhaps create a custom post type and attach those fields to that post … Read more
Most sensible here is probably just a custom query global $wpdb; $sql_find_meta = “SELECT post_id FROM database_name_here.wp_postmeta WHERE meta_key = ‘my_special_value’ AND meta_value > ”;”; // > ” == not null, whitespace or blank $posts_with_meta_key = $wpdb->get_col( $sql_find_meta ); foreach ( $posts_with_meta_key as etc….. You can repeat this for wp_termmeta and term_id