Suggestions: Modified Date and Date Format
-
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 ); ?>
- The topic ‘Suggestions: Modified Date and Date Format’ is closed to new replies.