• Resolved Exel

    (@exelzeitgeister)


    I need to display a bi-directional field value asociated to an extended user.

    I have used this shortcode:

    [pods name=”user” where=”id={@user.id}”]{@membresia}[/pods]

    But nothing shows…

    Can please help me?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    This would only work if you’ve done the work on the Special Magic Tags to enable parsing them in your shortcodes:
    https://docs.pods.io/displaying-pods/magic-tags/special-magic-tags/

    {@user.any} is a Special Magic Tag which means it requires the changes noted in that article above to your wp-config.php to be processed. That will also only show that information for the logged-in user.

    Thread Starter Exel

    (@exelzeitgeister)

    Oh!, I see… But it’s possible another solution to display that field using a shortcode? I mean, whitout Special Magic Tags. Because I need to show that value for logged-in and logged-out users.

    Thread Starter Exel

    (@exelzeitgeister)

    Sorry for the insistence, but I really need to resolve this issue. Do you need any extra information to help me with this?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Have you read our docs?
    https://docs.pods.io/displaying-pods/

    Thread Starter Exel

    (@exelzeitgeister)

    Yes, I have read your documentation. But when trying to use this shortcode “[pods name=”user”]{@membresia}[/pods]”, the result is that it ends up showing me a string of values and not a single value.

    And I have tried to limit those values according to the ID, but the ID varies according to the user, it is not fixed.

    That is why, I understand that I must create a condition that allows me to select a single value according to the user ID. And this is when the shortcode I try to use does not return any value.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @exelzeitgeister

    Please add use_current="1" do the shortcode so it knows to use the current object. This works automatically for posts but not for other WP objects.
    The next update of Pods will do this automatically for other WP objects as well, see: https://github.com/pods-framework/pods/pull/5599

    Cheers, Jory

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to display a bi-directional field?’ is closed to new replies.