Retrieving Advanced Custom Field within Shortcode Function [closed]
“You have to explicitly pass post ID as the 2nd argument.” – Milo In the Advanced Custom Fields plugin file, plugins/advanced-custom-fields/core/api.php, get_fields has a default $post_id of false, and calls on get_field_objects, which seems to run specific calls to $wpdb->get_col($wpdb->prepare, depending on what $post_id contains (is_numeric?, strpos(‘user_’)), so I guess depending on the environment of … Read more