Skip to content

Conversation

@jmslbam
Copy link
Contributor

@jmslbam jmslbam commented Aug 23, 2016

When leaving out the trailing slash the export becomes directorynamefilename.json instead of directory/filename.json and all files get exported to the same level.

Filter:

function wt_acfwpcli_fieldgroup_paths(){
    return [ get_template_directory_uri() . '/field-groups'];
}
add_filter('acfwpcli_fieldgroup_paths', 'wt_acfwpcli_fieldgroup_paths');

When leaving out the trailing slash the export becomes `directorynamefilename.json` instead of `directory/filename.json` and all files get exported to the same level.

Filter:
```
function wt_acfwpcli_fieldgroup_paths(){
    return [ get_template_directory_uri() . '/field-groups'];
}
add_filter('acfwpcli_fieldgroup_paths', 'wt_acfwpcli_fieldgroup_paths');
```
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

Successfully merging this pull request may close these issues.

1 participant