On wordpress and ACF,
I am searching for a way to load different <div>
(one OR the other, not both)
based on
the choosen content from the ACF « select » field (named « type_of_page »)
when the page load.
I have two type of selector « actual » OR « archive »
that have to load two <div>
« #now » OR « #before »
<?php
if(get_field('type_of_page') == "archive")
{
//...
}
?>
<div id="now">NOW</div>
<div id="before">BEFORE</div>
How sould I release that, without loading both ?