• Resolved korg007

    (@gillesgagnon)


    Hi folks!

    I have a Pods file/image/video field in a custom post that I want to use to contain several files (3 to 5)

    Using a shortcode, how on earth can I generate the list of these files, where I display file “titles” (friendly name) which are links to their file url?

    I tried [pods field=”documents_test”] where “documents_test” is my field name but this simply generates a list of the full url of each file entered.

    In other words I simply want to display a short list of these clickable names so user can open the pdf.

    Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @gillesgagnon

    Did you check the docs?
    See https://docs.pods.io/displaying-pods/magic-tags/using-magic-tags/

    You can use these tags within your shortcode to set the output, example:
    [pods field="fieldname"]{@fieldname._url}[pods]

    Cheers, Jory

    Thread Starter korg007

    (@gillesgagnon)

    Hi @keraweb ,

    Thanks so much for your suggestion Jory. It helped and I’m getting closer to resolving this. What’s odd now, (bug?) is that when I use the magic tag {@documents_test._img.fiat_thumb} renders the tiny thumbnail in the backend editor when editing the page but the small thumbnail doesn’t appear when I visit the page in the frontend.

    Any ideas anyone?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @gillesgagnon

    I’m not familiar with fiat_thumb, it sounds like you’ve created a custom image size. Please make sure this size exist for this document. You might need to regenerate thumbs (there are plugins for this!).

    Cheers, Jory

    Thread Starter korg007

    (@gillesgagnon)

    Thanks @keraweb !

    I inherited the site so wasn’t aware of possible custom images. You’re correct though. I checked and a plugin created those “fiat” thumbs.

    What’s weird is that, as stated, the image appears in the preview/backend, just not in the live page.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @gillesgagnon

    WordPress uses a fallback size on a lot of locations, this might be the reason it still showed in the backend ??

    Cheers, Jory

    Thread Starter korg007

    (@gillesgagnon)

    That makes sense. Thanks, Jory.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating links from field type: file/image/video’ is closed to new replies.