Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p><?php the_field("status"); ?> </p>
- <?php
- //store the value in a variable first
- $option = get_field("status");
- if($option=="K dispozicii"){
- ?> <p style="color:green">$option</p> <?php
- }elseif ($option=="Obsazeno") {
- ?> <p style="color:red">$option</p> <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement