Quantcast
Viewing all articles
Browse latest Browse all 11471

Pixmeister on "[Plugin: Polylang] include/exclude sync of AFC Repeater Fields"

Hi Chouby.
Thank you for your (fast) response!

And thanks for the idea with array_diff.
i wasn't able to solve this yet. Maybe there's something easy i don't see.

What i have:
A custom Field Repeater in WP called galerie
Inside this Field there are two Fields: galimage and galtitle

shouldn't it be possible to sync those fields with the array?

To sync a simple text custom Field, this works:

add_filter('pll_copy_post_metas', 'copy_post_metas');
function copy_post_metas($metas) {
      return array_merge($metas, array('testfield'));
}*/

But somehow i should get those subfields galimage and galtitle synced.
(maybe it's just the way i define the array in the array_merge function?)


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>