ACF Gallery

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

E2Pdf support ACF Gallery field?
May 06, 2021 15:19:18
E2Pdf
Topics: 7
Messages: 3617
Support
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!
May 06, 2021 15: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?

May 06, 2021 15:35:34
Topics: 4
Messages: 15
And i should use objects image or html?
May 06, 2021 16:00:01
E2Pdf
Topics: 7
Messages: 3617
Support
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!
May 06, 2021 16:03:16
Topics: 4
Messages: 15
Thank you for help.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.