Hi all, someone solve it? I have the same problem and my trash field group is empty too.
Thanks in advance for the help.
Hi all, someone solve it? I have the same problem and my trash field group is empty too.
Thanks in advance for the help.
I solved it! I put in the foreach a new foreach with new question:
$posts = get_field (‘relationship1’);
foreach ($posts as $post) :
$subposts = get_field(‘relationship2’, $post->ID);
foreach ($subposts as $subpost) :
echo get_the_title($subpost->ID);
endforeach; endforeach;
I followed istructions to manipulate the results here
http://www.advancedcustomfields.com/resources/field-types/date-picker/
but I didn’t yet understand how to change the language.
here my code:
<?php $date = get_field('name-field');
$y = substr($date, 0, 4);
$m = substr($date, 4, 2);
$d = substr($date, 6, 2);
$time = strtotime("{$d}-{$m}-{$y}");?>
<?php echo date('l D M Y', $time); ?>
It work but I need it in other language and in forums I didn’t find the relative solution.
Help, please.