Custom Markup Variable for button group
-
I am trying to use the Custom Markup Variable feature to display a different name based on what a button group value is. My sample code is below, and I’m outputting the return value as {baseDescription}. My ACF Button Group choices are:
Base
Expansion<?php
$isExpansion = ”;
if($base_game$ == ‘Base’)
$isExpansion = ”
else
$isExpansion = ‘Expansion’return [
‘baseDescription’=> $isExpansion
];
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Markup Variable for button group’ is closed to new replies.