Hi,
one thing about the datum-und-uhrzeit field in rfg.
1. why doesnt it show the time? I used date and time in rfg field
2. can i compare it to actual date and time -> if it in paste i would remove it
my shortcode is:
function myownfunc( $atts ) {
$post_id = $atts['postidmy'];
$fieldvalues = toolset_get_related_posts( get_the_ID(), "termine-veranst", array( 'query_by_role' => 'parent', 'return' => 'post_object'));
$temp = array();
foreach ($fieldvalues as $fieldvalue) {
$partone = types_render_field('datum-und-uhrzeit', array('post_id' => $fieldvalue->ID));
$temp[] = $partone;
$one = $temp[0];
$two = $temp[1];
}
return implode(" - ",$temp);
}
add_shortcode( 'datetime', 'myownfunc' );
thx - alex
My issue is resolved now. Thank you!