Forum Replies Created

Viewing 5 replies - 136 through 140 (of 140 total)
  • Plugin Author Eugene Holin

    (@eugenyh)

    Dear attackta!

    No need to write the numbers in the array with the names of the months! He only for the names of the months that we write in the form of text: January, February, March, etc.

    Unfortunately, site lepantomag.gr is not working. Tell me please, which date format do you need? I’m currently working on a new version of the plug-in, it will be able to select the date format and more convenient localization. The new version of the plugin will be published a few days ago.

    Plugin Author Eugene Holin

    (@eugenyh)

    Hello, attackta! Thank you for review!

    To change date in widget you need open file lptw-recent-posts.php and:

    If widget with fluid images:
    – find line #143
    <span class="lptw-post-date date-<?php echo $color_scheme; ?>"><?php echo $month_word.' '.date("d, Y", strtotime($post_date)); ?></span>
    – and change it to
    <span class="lptw-post-date date-<?php echo $color_scheme; ?>"><?php echo date("d", strtotime($post_date)).' '.$month_word.' '.date("Y", strtotime($post_date)); ?></span>

    To change the date and title places, need to swap lines #142-144 and #145-147

    If widget with thumbnails:
    – find line #382
    <span class="lptw-post-date"><?php echo $month_word.' '.date("d, Y", strtotime($post_date)); ?></span>
    – and change it to
    <span class="lptw-post-date"><?php echo date("d", strtotime($post_date)).' '.$month_word.' '.date("Y", strtotime($post_date)); ?></span>

    To change the date and title places in this widget, need to swap lines #381-383 and #384-386

    To change shortcode output.
    If the basic layout:
    – find line #597
    if ( $a['show_date'] ) {$content .= '<span class="lptw-post-date date-'.$a['color_scheme'].'">'.$month_word.' '.date("d, Y", strtotime($post_date)).'</span>';}
    – and change it to
    if ( $a['show_date'] ) {$content .= '<span class="lptw-post-date date-'.$a['color_scheme'].'">'.date("d", strtotime($post_date)).' '.$month_word.' '.date("Y", strtotime($post_date)).'</span>';}

    To change the date and title places, need to swap lines #597 and #598

    If the thumbnails layout
    – find line #614
    if ( $a['show_date'] ) { $content .= '<span class="lptw-post-date">'.$month_word.' '.date("d, Y", strtotime($post_date)).'</span>'; }
    – and change it to
    if ( $a['show_date'] ) { $content .= '<span class="lptw-post-date">'.date("d", strtotime($post_date)).' '.$month_word.' '.date("Y", strtotime($post_date)).'</span>'; }

    To change the date and title places, need to swap lines #614 and #615

    Change the css code is not necessary.

    Did this solve the problem?

    Plugin Author Eugene Holin

    (@eugenyh)

    Thank you, attackta! Glad to help!

    @tribulant Software

    Thank you for your correction!
    Of course, best way for production site – use it just once, as example, after theme activation.

    You need to use flush_rewrite_rules(); after call register_post_type(…) for your Custom Post type.

Viewing 5 replies - 136 through 140 (of 140 total)