Skip Navigation

[Résolu] sort about datefield in rpg from actually date

This support ticket is created Il y a 2 années et 9 mois. 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.

This topic contains 1 réponse, has 1 voix.

Last updated by alexd-6 Il y a 2 années et 9 mois.

Auteur
Publications
#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.