WordPress.org

Forums

WP API
WP API with Advance custom field (3 posts)

  1. Denish
    Member
    Posted 3 years ago #

    I have used Advance custom field plugin for many different input field,

    Now i have to send data of my wordpress backend to one IPHONE app to send content in JSON.

    so by default it send default field as shown in screenshot.

    How can i send ACF fields values with post's json content..

    http://wordpress.org/extend/plugins/wp-api/

  2. Andrew L
    Member
    Posted 2 years ago #

    Try adding:
    "'Name' => get_post_meta($value->ID, 'CUSTOM-FIELD'),

    In this example URL: http://www.domain.com/?wpapi=get_posts&dev=1&type=posts the above code would go around line 270 of "get_posts.php'.

  3. jbuchbinder
    Member
    Posted 2 years ago #

    I patched my fork to include this capability, if you're interested.

    The commit:

    https://github.com/jbuchbinder/wp-api/commit/c30a975951b85d990d6bee2d933f3fb98a9b2aad

    The main repo link:

    https://github.com/jbuchbinder/wp-api

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic