WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Widget Extended
Localize the date (7 posts)

  1. spiros
    Member
    Posted 7 months ago #

    Is it possible to localize the month/day name produced by the plug-in?

    http://wordpress.org/plugins/recent-posts-widget-extended/

  2. staygre
    Member
    Posted 6 months ago #

    Any solution to that? Thanks.

  3. Monika
    Member
    Posted 6 months ago #

    open the widget and you will find a place where you can change the "date format" => at the end of the widget

  4. staygre
    Member
    Posted 6 months ago #

    i saw that but how can i have the date in greek for example?

  5. staygre
    Member
    Posted 6 months ago #

    my wordpress site lang is greek.

  6. staygre
    Member
    Posted 6 months ago #

    What i did for the moment and it works is that i changed lines 111-113 at includes/widget-recent-posts-extended.php file from:

    <?php if ( $date == true ) { ?>
    <time class="rpwe-time published" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo esc_html( get_the_date( $date_format ) ); ?></time>
    <?php } ?>

    to:

    <?php if ( $date == true ) { ?>

    <time class="rpwe-time published" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo get_the_date(); ?></time>
    <?php } ?>

  7. Satrya
    Member
    Plugin Author

    Posted 5 months ago #

    I'm not familiar with the translatable date, should i use http://codex.wordpress.org/Function_Reference/date_i18n ?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.