BeAPI / bea-media-analytics

Find where and how media are used across your site.
https://wordpress.org/plugins/bea-media-analytics/
Other
14 stars 1 forks source link

ACF indexation not supporting 'clone' and 'group' fields type #47

Closed MaximeCulea closed 6 years ago

MaximeCulea commented 6 years ago

The classes/helper/post.php:80 method don't support 'clone' and 'group' fields type. They should be working same as 'repeater' ones - how the field is structured.

Wondering if's not easier to get all fields against one post with get_fields( $post_id ) and foreach fields, check the type, and then get the value or not.

herewithme commented 6 years ago

:ah:

MaximeCulea commented 6 years ago

Done. But could be optimized by saving this acf's "media" fields somewhere (one time) before getting the according post media'ids.

MaximeCulea commented 6 years ago

TODO: Unit tests + Documentation (github readme + wp readme)