Title: Custom fields shortcode in query loop
Last modified: July 13, 2022

---

# Custom fields shortcode in query loop

 *  Resolved [luuctaverne](https://wordpress.org/support/users/luuctaverne/)
 * (@luuctaverne)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-shortcode-in-query-loop/)
 * 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 3 years, 11 months ago by [luuctaverne](https://wordpress.org/support/users/luuctaverne/).
      Reason: typo
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-shortcode-in-query-loop%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-shortcode-in-query-loop/#post-15834976)
 * Hi [@luuctaverne](https://wordpress.org/support/users/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](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/custom-fields-shortcode-in-query-loop/#post-16238181)
 * 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.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/custom-fields-shortcode-in-query-loop/#post-16238181)
 * Status: resolved