• Resolved steprightup

    (@steprightup)


    Hi. I love this plugin.

    I have made some updates to the code but I’m afraid they will go away upon the next release of this plugin. My specific needs were to show a list of recently modified pages to users (and displaying the modified date). If you have a suggestion for better implementation of these codes let me know. Thank you and thanks for making this awesome plugin!

    Here are the suggestions/changes…

    1. Add “Order by: Modified Date”
    (This was simple enough to implement as I added the following code to pages-by-custom-tax.php)
    <option value="modified" <?php if($order_by=="modified"){ echo "selected"; } ?> ><?php _e( 'Modified Date', 'wp-list-pages-by-custom-taxonomy' ); ?></option>

    2. Add “Display: Modified Date”
    (This was a little more complicated to implement but basically, I copied every line of code containing display_date and changed it to a display_modified.)

    3. Remove forced format for date display.
    (This was easy enough to implement by removing the variables from the date display code in pbytax_template.php.)
    <?php echo get_the_date( '', $pbytax_post->ID ); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author piccart

    (@piccart)

    Hello!
    many thanks for your words and for the review/rating! ??

    I’m glad that my plugin is being useful for you and I am happy to see that you enjoy exploring and playing with the code ??

    As you say the next time you update the plugin, your edits will be lost. But don’t worry, these are small additions and it’s not a problem for me to implement them within the next version, so then you’ll lose yours but you’ll have the same functionality (you’ll have to select the options again obviously).

    though I will make it so that you can display only one date, and choose if you want to display the modified or the publish date. I hope that’d work with you.

    p.s. I’ll give you a shout in this topic whenever I publish the next version.

    cheers!

    Thread Starter steprightup

    (@steprightup)

    Ah that’s perfect!

    Thank you so much!

    Plugin Author piccart

    (@piccart)

    hello!
    I’ve just deployed the new version.

    if you update you will lose your edits but with this version there are already options to select to display the Modified date, to order by modified, and to set the format of the date.

    let me know if you have problems with it.
    cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestions: Modified Date and Date Format’ is closed to new replies.