There is an additional field in wordpress bloki. How to make it so that if they are equal to 3, then print the number 4? This is necessary to derive a class for blocks that will be 3 i. class col-md-4 and 4 then col-md-3 and 6 then col-md-2

<div class="col-md-<?php the_field('price'); ?>"> bla bla bla </div> 

    1 answer 1

    Make it easier. Make this field as a radio button and for Label "three" - the value 4, "two" - the value 6. And just output the value as output enter image description here

    • Logical, thanks for the tip) - reddyk