How to: images from media library, wp_get_attachment_image_src, custom PHP show them in a loop in Pinegrow

Found my solution in Pinegrow, Thanks to this article: Args in own PHP block

My problem was:
I didnt see the ARGS IN BLOCK option like it was shown in the forum post. I saw this:

Fix is to type a QUERY NAME, then it will appear:

I needed these args:
‘post_type’ => ‘attachment’,
‘category_name’ => ‘3d’,
‘post_mime_type’ => ‘image’,
‘posts_per_page’ => ‘5’,
‘post_status’ => ‘inherit’,
‘orderby’ => ‘rand’

In the Pinegrow created PHP block I did not need to enter it manually. This is an advantage since every time you change something in this WordPress Action The Loop, then your PHP block gets resetted. My parameters went in like this:

Now my next challenge is: the Pagination Action doesn’t work, maybe another topic :slight_smile: