• Resolved Dennis Bareis

    (@dbareis)


    I’m new to PODS and have set up a “plants” pod, in the template I wish to conditionally generate some extra information for logged on users (or admins, or whatever works). I tried to extend “Users” but “{@userx.user_login}” is empty so I’ve done something wrong. Even if it works I can’t see how I can use that since the “IF” statement expects a field as the parameter.

    The documentation doesn’t say if “IF” can be nested but I assume so, at least I’ll be trying it soon…

    I am also attaching images, I wish to access the title and cation etc, there appear to be no codes for this?

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

    (@keraweb)

    Hi @dbareis

    I’m not familiar with {@userx} only {@user}, please see: https://docs.pods.io/displaying-pods/magic-tags/special-magic-tags/

    For images you should traverse into the metadata:

    {@thumbnail._wp_attachment_metadata.image_meta.caption}

    Cheers, Jory

    Thread Starter Dennis Bareis

    (@dbareis)

    Hi, @keraweb,

    userx is what I called my extended user (no fields added).

    Thanks for the caption info, I’ll try that.

    I finally worked out I can use “Gallery” (with some parms) to display a gallery but there are no parameters to make it act exactly like a block gallery I insert myself manually into WP, for example caption shortcodes aren’t replaced (JetPack plugin actually displays the gallery).

    Is there a way to manually code all the gallery stuff in the template? I’ve looked for examples without any luck so far…

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @dbareis

    Galleries are created differently with each plugin. We support the default WP gallery.

    A block is something different and as far as I know you cannot use a dynamic field/meta source for the gallery images.
    There probably are several plugins dat do support this. Maybe GenerateBlocks?

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting Current User Info / Media Info (title, caption etc)’ is closed to new replies.