• Resolved rezto

    (@rezto)


    Hi!

    I have a site with Avada theme. I use rss aggregator for news feed on frontpage. I’ve set the date format to j.n.Y in RSS aggregator settings, but it still shows the date as 4th Jul 18.

    Can this be fixed someway?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @rezto,

    Can you please check your default WordPress Settings for Date and Time? It could be this is overriding the WP RSS Aggregator settings globally.

    You may also test for theme and plugin conflicts by following the steps here

    Thread Starter rezto

    (@rezto)

    I found the place where I the date format is. It’s in wp-rss-widget/includes/views/view-widget-display.php

    <?php if ( $show_date || $show_author ): ?>
    <div class=”wprss-w-meta”>
    <?php
    if ( $show_date ) {
    $item_date = get_the_time( ‘U’, get_the_ID() );
    $item_date = ( $item_date === ” )? date(‘U’) : $item_date;
    $fulldate = date( ‘j.n.Y’, $item_date );
    echo ‘<span class=”wprss-w-date”>’ . $fulldate . ‘</span>’;
    }
    $author = get_post_meta( get_the_ID(), ‘wprss_item_author’, TRUE );
    if ( $show_author && ! empty( $author ) ) {
    echo ‘<span class=”wprss-w-author”>By ‘ . $author . ‘</span>’;
    }
    ?>
    </div>
    <?php endif; ?>

    Where there’s j.n.Y now was the old format of 4th Jul 18. How can I make this change to last over updates?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘date in widget doesn’t change format’ is closed to new replies.