Hello,
I tried to do like you said above, but… it seems that there is some issue with id of the post that should be provided to the_field ACF function, let me explain my problem:
– if I use: [insert page=’post-name’ display=’my-template.php’] where my template is using the ACF function the_field(‘name_of_field’), nothing happend.
– if I use: [insert page=’post-name’ display=’all’] – I’ve got all fields that exists in my custom post type, so I assume that the post is available to read by Insert Pages plugin.
– if I use: [insert page=’post-name’ display=’my-template.php’] where my template is using the ACF function the_field(‘name_of_field’,’id-of-the-post’), so I added the post id to the ACF function – it works fine.
So, question is how to find and provide the post id to the ACF function in the template? Maybe it is simple ?? – I am not so familiar with coding in WordPress.
I am working with WordPress 5.0.3, Insert Pages ver. 3.4.3, ACF ver. 5.7.10 and Custom Post Type UI ver. 1.6.1 (+ template Iconic One Pro v. 2.4).
Best regards,
Ziemowit