Home Forums WoodMart support forum Post details – Full date

Post details – Full date

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #568576

    ckrzysieck
    Participant

    Hello,
    Is it possible to display the full date in the post instead of the abbreviated version (day / month)?
    https://prnt.sc/5TdqPebUj0rK

    #568685

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please try to add the code below in the functions.php file in your child theme.

    function woodmart_post_date( $args ) {
        $has_title = get_the_title() != '';
        $attr      = '';
        if ( ! $has_title && ! is_single() ) {
            $url  = get_the_permalink();
            $attr = 'window.location=\'' . $url . '\';';
        }
        $classes  = '';
        $classes .= ' ' . $args['style'];
        $classes .= woodmart_get_old_classes( ' woodmart-post-date' );
        ?>
            <div class="post-date wd-post-date<?php echo esc_attr( $classes ); ?>" onclick="<?php echo esc_attr( $attr ); ?>">
                <span class="post-date-full">
                    <?php echo get_the_time( 'j F Y' ); ?>
                </span>
            </div>
        <?php
    }

    Best Regards.

    #568849

    ckrzysieck
    Participant

    Hello Aizaz,

    Thank you for your help.

    #568966

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Post details – Full date’ is closed to new replies.