Skip Navigation

[Resolved] sort about datefield in rpg from actually date

This support ticket is created 2 years, 9 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.

This topic contains 1 reply, has 1 voice.

Last updated by alexd-6 2 years, 9 months ago.

Author
Posts
#2108377

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

#2108391

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.