• Resolved luuctaverne

    (@luuctaverne)


    Hello,

    I am trying to show a custom field in a query loop on my post archive page. The desired result is that the custom field called “single_product_rrp” is shown in the query per post on the front-end. I’ve managed to do it on a single post page but not on the archive page.

    The current shortcode I have tried is as follows:

    [pods field="my_custom_field"]
    [pods]{@my_custom_field}[/pods]

    This, however, shows no results.

    Looking forward to hearing your suggestions!

    Thanks,

    Luuc

    • This topic was modified 2 years, 8 months ago by luuctaverne. Reason: typo

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

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

    (@keraweb)

    Hi @luuctaverne

    Where are you adding this shortcode?
    The first version [pods field="my_custom_field"] should work fine, even for archive loops as long as the loop is done correctly by the theme.

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Closing topic due to inactivity.
    Feel free to reach out if you still need help!

    Cheers, Jory

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom fields shortcode in query loop’ is closed to new replies.