Sync advanced custom fields issue
-
Hello! Thanks for the awesome plugin you developed! It’s great!
However I’m having a small issue when I try to sync to custom post type. This is the situation:
I’ve got a custom post type called ‘game’. I’ve used advanced custom fields to specify a form for this post type. In this form I’ve got some fields that I want to be shared between the translations of post. What I mean by this is that when I go to the en version of a post and try to change the field, let’s say, year, I would like to sync it with the other translations.Currently the only change I’ve made to the normal setup is to add in the functions file this:
add_filter( 'pll_copy_post_metas', 'copy_post_metas', 25, 2 ); function copy_post_metas( $metas ) { return array_merge( $metas, array( 'year') ); }
Am I missing something? Thanks in advance ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sync advanced custom fields issue’ is closed to new replies.