Custom Fields
Re-Envisioned
Support General If Then Question

  • Creator
    Topic
  • #27630
    Resolved Rebecca Robertson
    Participant

    I want to change how a field is displayed on the frontend depending on the rwmb_meta(), kind of like this:

    <?php if( rwmb_meta() = '1' ) { ?>
    ...
    <?php } elseif( rwmb_meta() = '2' ) { ?>
    ...
    <?php } elseif( rwmb_meta() = '3' ) { ?>
    ...
    <?php } else { ?>
    ...
    <?php } ?>
    

    where the number after = is whatever the value of rwmb_meta() is.

    I know how to do this with general WP elements such as category or page, but how would I do it for Meta Box fields?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.