Support » Plugin: Pods - Custom Content Types and Fields » Get label of simple relation using get_posts

  • Resolved comsud

    (@comsud)


    Hi there,

    i’m trying to get the label of custom field “price_informations” but what i’m doing, i can only have the value.

    
    <?php echo get_post_meta( $productt->get_id(), 'price_informations', true ); ?>
    

    is there something i’ve missing out ?

    Here are the different choices in my option field ( French ) :
    unite|prix à l’unité
    piece|Prix à la pièce
    douzaine|prix à la douzaine

    So request return me :
    unite/piece or douzaine
    and i want to display :
    prix à l’unité / Prix à la pièce or Prix à la douzaine

    • This topic was modified 9 months, 3 weeks ago by  comsud.
    • This topic was modified 9 months, 3 weeks ago by  comsud.
    • This topic was modified 9 months, 3 weeks ago by  comsud.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get label of simple relation using get_posts’ is closed to new replies.