ACF Gallery

Help Desk ›› How to ›› ACF Gallery
WordPress
6 May, 2021 07:20:00
Topics: 4
Messages: 15
Hello.

E2Pdf support ACF Gallery field?
6 May, 2021 08:19:18
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

E2Pdf can access "meta" value which is used by ACF for storing Image IDs, navigation via arrays is done with "path" attribute, so you must be able to use shortcode as follows:

1st image url:
[e2pdf-wp key="gallery" meta="true" path="0" attachment_image_url="true"]

2nd image url:
[e2pdf-wp key="gallery" meta="true" path="1" attachment_image_url="true"]

3rd image url:
[e2pdf-wp key="gallery" meta="true" path="2" attachment_image_url="true"]

and so on.

* where "gallery" is field key.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
6 May, 2021 08:32:10
Topics: 4
Messages: 15
Hi Oleksandr. Thank you for information. Cool.

I have searched the documentation but can't see support for the_permalink. True?

6 May, 2021 08:35:34
Topics: 4
Messages: 15
And i should use objects image or html?
6 May, 2021 09:00:01
E2Pdf
Support
Topics: 7
Messages: 3156
Sorry, documentation regarding this located here: https://e2pdf.com/extensions/wordpress#meta_key. We will soon change it for more easier search.

You can use "Image" object or inside "HTML", however formatting with "HTML" can be hard due the lack of HTML/CSS support so we recommend to use "Image" object if possible.

If "Image" object - value must be set just as:

[e2pdf-wp key="gallery" meta="true" path="0" attachment_image_url="true" size="thumbnail"]

* "thumbnail" size used by default

However if you will use "HTML", you must use it as follows. Keep attention on "quotes" at "src" and "Disable WYSIWYG Editor must be checked" (screenshot attached):

<img src='[e2pdf-wp key="gallery" meta="true" path="2" attachment_image_url="true" size="thumbnail" ]' width="100">

In general - above shortcode navigate via Image IDs and convert it to URLs (exactly what "permalink" do).

We remain at your service.
We would really appreciate your feedback at WordPress.org!
6 May, 2021 09:03:16
Topics: 4
Messages: 15
Thank you for help.