• Resolved Stacy (non coder)

    (@functionmunchkin)


    Any list of all shortcodes for displaying field values?

    I’ve tried [pods field=”brand”] , shows nothing in woocommerce product page.

    Tried [id: 19291] post field in post. Not working, shows as is.

    Tried $page = pods( ‘pod_brand’, get_the_ID(18628) ); with php rendering. Shows nothing in post. Shows as is on product page.

    Tried enabling templates module and using {@field_name} in post also [id: templateid]. Both shows as is.

    Am I supposed to use all of this here? http://pods.io/docs/code/pods/field/

    https://wordpress.org/plugins/pods/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Josh Pollock

    (@shelob9)

    All Pods shortcodes require that you specify the name of the Pod with the argument “name” shortcode. So the shortcode [pods field="brand"] will not work because Pods has no idea what Pod, the field brand is is in.

    Also check out these two documentation pages:

    http://pods.io/docs/learn/shortcodes/pods/

    http://pods.io/docs/build/using-magic-tags/

    Thread Starter Stacy (non coder)

    (@functionmunchkin)

    Not sure what argument means but in short

    [pods]{@my_custom_field}[/pods]

    Thank you much.
    *http://pods.io/docs/build/using-magic-tags/

    Plugin Contributor Josh Pollock

    (@shelob9)

    The shortcode [pods]{@my_custom_field}[/pods] will not work as you have no specified the pod that my_custom_field is in using the name argument. If my_custom_field was a field in the pod called “dogs” you would use the shortcode [pods name="dogs"]{@my_custom_field}[/pods].

    Thread Starter Stacy (non coder)

    (@functionmunchkin)

    What I had done was [pods]{@testpod}[/pods] which worked.

    [pods name=”testpod”]{@testpod}[/pods] or [pods name=”testpod”]{@my_custom_field}[/pods] ( doubt that’s what you meant) doesn’t work.

    But by the way , none of these work on a woocommerce page even though the custom field input shows as a module.

    Any way to get a woocommerce attribute term to show as a value in your field?
    I thought everything in wp has a meta key but I’ve been looking for how to just show a value for any key via shortcode or template tag.

    Plugin Contributor Josh Pollock

    (@shelob9)

    What is the name of your pod is testpod and your custom field is called my_custom_field then [pods name="testpod"]{@my_custom_field}[/pods] is exactly what I mean.

    I unfortunately do not know anything about Woo Commerce, as I have never used it. Is a woocommerce attribute term a taxonomy term or a custom field?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display field value?’ is closed to new replies.