Skip Navigation

[Gelöst] sort about datefield in rpg from actually date

This support ticket is created vor 3 Jahren, 4 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Dieses Thema enthält 1 Antwort, hat 1 Stimme.

Zuletzt aktualisiert von alexd-6 vor 3 Jahren, 4 Monaten.

Author
Artikel
#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!