• Resolved support91

    (@support91)


    Hi!

    I love this plugin, it’s saved me so much work.
    But I have a bit of a problem…

    When I call a dropdown value using meta keys, what I get is the raw value itself rather than the label it’s attached to. For example:

    Dropdown 1: “Hello World”
    Dropdown 2: “Good night”

    If I call the meta key “hello-world”, I want to get “Hello World” data but instead I get “hello-world.”

    This isn’t a problem with Text fields and other information types, which call their more rich data through their meta key values. Am I doing something wrong, and how can I address this?

    P.S. I am using Oxygen Builder with WP Frontend, and using Oxygen to call custom post field values by meta keys. And it’s not getting the right thing with dropdowns specifically. Any help is appreciated.

    • This topic was modified 2 years, 9 months ago by support91.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter support91

    (@support91)

    I guess a different way to frame my question might be:

    How can I echo out the labels for these meta key values, using PHP?

    I want to build my own frontend pages by calling the data in different places, but I’m only able to get the values, not the labels.

    Thanks!

    Thread Starter support91

    (@support91)

    Oh I just checked my SQL itself and it looks like the value literally is stored in lowercase, so that’s all I can call. But then I wonder, how is it that you’re able to display the information in your frontend post template the way it appears in the Form Post? The information must be stored somewhere..

    Hey @support91
    Sorry for the late.

    When I call a dropdown value using meta keys, what I get is the raw value itself rather than the label it’s attached to.

    → You can change your dropdown value like your option, which will print as identical.

    Besides, you can check out this doc to know how to retrieve custom fields meta throughout the get_post_meta function.

    Note: This forum is only for the free features query (forum guidelines), and “Oxygen Builder” is off the context though I already shared with you what you need. So if you’ve further queries about any premium topics or so. Reach us from https://wedevs.com/contact or support[at]wedevs.com
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dropdown Meta key calling Value, not Label.’ is closed to new replies.