Title: ACF Meta callback Null
Last modified: April 6, 2018

---

# ACF Meta callback Null

 *  Resolved [ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/)
 * (@ebeliejinfren)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/)
 * Hi,
    meta data of acf Plugin (Advanced Custom Field) in api controller return
   null
 * Example : [http://jenyar.com/wp-json/wp/v2/songs](http://jenyar.com/wp-json/wp/v2/songs)
   
   field example “artist_en”
 * thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Facf-meta-callback-null%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10154846)
 * Hi [@ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/),
 * Are any of your other ACF fields returning data?
 * Let me know.
 * Thank you,
    Kevin.
 *  Thread Starter [ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/)
 * (@ebeliejinfren)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10157444)
 * Yes , All ACF fields plugin returning null
    other data tag working good
 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10161371)
 * Hi [@ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/),
 * I think I’ve found the problem. We have an issue with dealing with dashes in 
   meta field names. I added a test field, `rest-api-test`, and received the same
   results as you (i.e. `null`). I then added a new field, `rest_api_test_v2`, and
   the value was accessible in the API. So I renamed `rest-api-test` to `rest_api_test`
   and everything worked.
 * Here is a screenshot showing that: [https://imgur.com/a/UtEtK](https://imgur.com/a/UtEtK)
 * Is it feasible for you to change your meta field names to use underscores instead
   of dashes?
 * Let me know.
 * Cheers,
    Kevin.
 *  Thread Starter [ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/)
 * (@ebeliejinfren)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10162460)
 * thank you, yes by changing dash to underline problem solved.
    an extra info :
   filed that name have dash auto change dash to underline and return null Like :“
   artist-en” in api show “artist_en”
 * new problem about acf filed that type are file, those fields not shown in module
   even
 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10162501)
 * Hi [@ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/),
 * What type of save are you doing for files? File Object, File URL, or File ID?
 * I added a file field (File Object), renamed the REST API field, and am seeing
   results in the REST API (appears to be the file ID – `"rest_api_test_file":"36",`).
 *  Thread Starter [ebeliejinfren](https://wordpress.org/support/users/ebeliejinfren/)
 * (@ebeliejinfren)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10162513)
 * i use file url for file and i dont find it in module
 *  Plugin Contributor [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * (@yikesitskevin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10162543)
 * I just set up a field with the file URL and it seems like it’s still saving the
   ID but the data is definitely accessible in the API.
 * Do you mean the field is not in the list of fields our plugin shows? We only 
   show fields that have a value so if you need our field to show up try adding 
   an image to your CPT and save it.
 * Cheers,
    Kevin.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ACF Meta callback Null’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-api-controller/assets/icon-256x256.png?rev=2489942)
 * [WP REST API Controller](https://wordpress.org/plugins/wp-rest-api-controller/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-api-controller/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-api-controller/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-api-controller/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-api-controller/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-api-controller/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [controller](https://wordpress.org/support/topic-tag/controller/)

 * 7 replies
 * 2 participants
 * Last reply from: [yikesitskevin](https://wordpress.org/support/users/yikesitskevin/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/acf-meta-callback-null/#post-10162543)
 * Status: resolved