Hello -
I am using an Advanced Image field so the client can add multiple images to a post (project photos) and I am currently using the normal way to dump this into a custom template file, this is fine.
However, I need to change things up and was wondering if it is possible to dump the Image IDs as an array into a shortcode arg?
Example:
[project_photos id="200,201,202,203" size="full"]
Maybe set a variable for the photos to get the array of IDs:
$p_photos = rwmb_the_value( 'my_field_id', id_array(?) );
Then pass the variable into the arg like so:
do_shortcode([project_photos id="' . $p_photos . '" size="full"]);
Couldn't find anything in the docs so I figured I'd ask here (also asked on FB).
Thanks in advance.