Support

Account

Home Forums ACF PRO Possible to get all custom field values? Reply To: Possible to get all custom field values?

  • $unique_non_blank_values = $wpdb->get_results( "SELECT DISTINCT meta_value FROM ".$wpdb->postmeta." WHERE meta_key = 'YourMetaKey' AND meta_value <>'' ORDER BY meta_value DESC");

    maybe this way?