Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"acf" key set to false with Advanced Custom Fields PRO #51

Open
karl-wednesday opened this issue May 26, 2016 · 2 comments
Open

"acf" key set to false with Advanced Custom Fields PRO #51

karl-wednesday opened this issue May 26, 2016 · 2 comments

Comments

@karl-wednesday
Copy link

The plugin works great with the standard Advanced Custom Fields plugin, however as soon as I enable Advanced Custom Fields PRO the "acf" key on each object is set to false. Deactivating the Advanced Custom Fields PRO plugin restores all of the data within the "acf" key.

I have input my serial number for Advanced Custom Fields PRO and the plugin is working as expected throughout the rest of my site.

I have looked through the code for ACF to WP API and Advanced Custom Fields PRO but as yet I have not spotted any obvious cause for this behaviour.

I have the following additional code in my theme's functions.php (note to self: move this code to a plugin)

function allow_meta( $valid_vars ) {
  $valid_vars = array_merge( $valid_vars, array( 'meta_key', 'meta_value' ) );
  return $valid_vars;
}
add_filter( 'rest_query_vars', 'allow_meta' );

My installation is as follows:

  • PHP 7.0.5-3+donate.sury.org~wily+1
  • MySQL 5.6.17
  • Wordpress 4.5.2
  • Advanced Custom Fields 4.4.7
  • Advanced Custom Fields PRO 5.3.8.1
  • ACF to WP API 1.3.3
@sheriffderek
Copy link

Maybe you need to disengage the non-pro version. You should only have one. : / ? ?? ?

@danielkoch
Copy link

danielkoch commented May 26, 2017

I think you need to buy/add the add-on http://www.wpallimport.com/advanced-custom-fields/ if you want to import ACF fields with WP all import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants