• Using PMPro with PODS fields. Other field types show fine, but images will not.

    I tested outputting just the meta key shortcode in an HTML object:

    [e2pdf-user key="pods_autograph" meta="true"]

    and it outputs this:

    a:7:{s:17:"original_filename";s:10:"TNSIGN.jpg";s:8:"filename";s:10:"TNSIGN.jpg";s:8:"fullpath";s:93:"/home/example20228202/public_html/web/wp-content/uploads/pmpro-register-helper/teresa/TNSIGN.jpg";s:7:"fullurl";s:93:"https://example.com/web/wp-content/uploads/pmpro-register-helper/teresa/TNSIGN.jpg";s:4:"size";i:15621;s:11:"previewpath";s:100:"/home/example20228202/public_html/web/wp-content/uploads/pmpro-register-helper/teresa/TNSIGN-200x87.jpg";s:10:"previewurl";s:100:"https://example.com/web/wp-content/uploads/pmpro-register-helper/teresa/TNSIGN-200x87.jpg";}

    I’ve tried this in the image value:

    https://example.com/web/wp-content/uploads/pmpro-register-helper/[e2pdf-user key="user_login"]/[e2pdf-user key="pods_autograph" meta="true"]

    with and without “image only” checked – nothing displays.

    How to retrieve the image url only from the meta key value?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author E2Pdf

    (@oleksandrz)

    Hi,

    You must be able to use “path” attribute to navigate through array value as:

    [e2pdf-user key="pods_autograph" meta="true" path="fullurl"]

    It must output just https://example.com/web/wp-content/uploads/pmpro-register-helper/teresa/TNSIGN.jpg, which must be possible to use as an “Image” object value.

    We remain at your service.

    Thread Starter tnightingale

    (@tnightingale)

    Thank you – that works for the autograph image field!

    For future reference, can you please direct me to the documentation that describes the ‘path’ attribute and any other image shortcode attributes?

    Now I just have to figure out why another PODS image field doesn’t show up in the mapped fields list or even if I manually put its name in the shortcode.

    Plugin Author E2Pdf

    (@oleksandrz)

    Hi,

    https://e2pdf.com/extensions/wordpress. We are working on updating our documentation and hope it will be available soon. It will contain more details and examples.

    As for another image field – some 3rd party plugins can have multiple metadata keys with some differences, for example, “field_key” and “_field_key”.

    We also recommend to update plugin to RC version: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com as it has some improvements in detecting meta field values in “Visual Mapper”.

    If you still failing with finding the value, you can attach some screenshots with field setup, so we can replicate it on our side and check if the data can be retrieved by E2Pdf.

    We remain at your service.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image not showing from PODS field’ is closed to new replies.