Hello all.
Anyone using the AFT Photo Gallery plugin to extend AFC without getting the Pro version?
I have managed to get it to work, by using this code in the query editor:
$data = get_post_meta( get_the_ID(), ‘slider_images’, true );
$dataarray = explode(‘,’,$data );
return [
‘post_type’ => ‘attachment’, //switch post type to attachment
‘post_status’ => ‘any’, // it doesn’t work without this
‘posts_per_page’ => ‘-1’, // display unlimited images
‘post__in’ => $dataarray,
];
This has two flaws. I dont get the imaged previewed in the editor and I don’t get sorting to work.
Anyone else that has a good/better solution using this plugin?
Also, AFC fields are displayed in the editor, what is needed to get custom fields from this pluing to display?