Home Forums ACF PRO Output Field Select Label


Output Field Select Label

  • Hey,
    i have an shortcode on my page with this code to output the field name:

    <?php if( get_field('bildungsbereich') ): ?>
        <div class="bildungsagent-gruppe">
          <span class="bildungsagent-header">
        <div class="bildungsagent-details">
    <?php the_field("bildungsbereich"); ?>
    <?php endif; ?>

    Now i added a label to the options like in the screenshot. How can i output the label on the frontend? I tried this:

    But this gives me the label from the fieldgroup, not from the selection.

    Thx for helping me

Viewing 1 post (of 1 total)

The topic ‘Output Field Select Label’ is closed to new replies.