I have this site.
At the bottom you will find some products ... four of them have the word "buton1" or "buton2"
The site is made with this Wordpress plugin and custom fields.
Basically I have two radio buttons.
I want to put my button, depending on which item is selected, in the admin panel.
To do this, I tried the following code:
CODE PHP:
<p class="test"> <?php
$variable = get_field('button');
echo $variable;
if(buton1 is selected)
{
<a href="?page_id=26" class="get_quote">get quote</a> //display the button
}else if(buton2 is selected){
//hide the button
}
?>
You can help me please tell me what I should do to fill my code?
How can I verify that the button is selected?
Thanks in advance!