times / acf-to-wp-api

Puts all ACF fields from posts, pages, custom post types, attachments and taxonomy terms, into the WP-API output under the 'acf' key
http://wordpress.org/plugins/acf-to-wp-api/
MIT License
203 stars 24 forks source link

Fatal error with get_fields() #25

Closed sirMuffles91 closed 9 years ago

sirMuffles91 commented 9 years ago

I have installed this plugin on my wordpress site and im trying to just call what I was before I installed: http://examplesite.com/tna_wp/wp-json/posts?filter[category_name]=lifestyle&filter[posts_per_page]=100

but I am receiving this error Fatal error: Call to undefined function get_fields() in /var/www/examplesite.com/tna_wp/wp-content/plugins/acf-to-wp-api/acf-to-wp-api.php on line 376

is there anymore in terms of setup that I need to do for this?

chrishutchinson commented 9 years ago

Have you got ACF installed? get_fields() is a function registered by ACF. That error would suggest ACF isn't installed or enabled on your site.

sirMuffles91 commented 9 years ago

Aha I see that I misunderstood the plugin. I am just trying to get the custom fields output from featured video. Will play around with ACF. Thanx