This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I need to check if the user selects an option on wpcf-cidade-do-anuncio-empresa. The other fields are optional. I can´t list all results. I am using this code on functions.php but it isn´t working:
$ids = array(830); //view code
if (in_array($view_id, $ids)){
if ( isset($_GET['wpcf-cidade-do-anuncio-empresa']) && $_GET['wpcf-cidade-do-anuncio-empresa'] != 'Cidade' )
// Cidade is the default value
{
} else {
$query_args['post__in'] = array(0);
}
}
return $query_args;