Hello, Im new to the forum
I was trying to save the field (a color field) to a variable in pho
<?php $colourHoy = the_field('colour_pagina'); ?>
it’s not working
Hi @o3odesigns
Use the get_field() function, instead of the_field() function to store it as a variable. Look at the example below:
<?php $colourHoy = get_field('colour_pagina'); ?>
Gracias mikerodriguez
that worked. I will keep that tip in mind