Title: Sorting by date
Last modified: August 21, 2016

---

# Sorting by date

 *  [AlanCWebb](https://wordpress.org/support/users/alancwebb/)
 * (@alancwebb)
 * [13 years ago](https://wordpress.org/support/topic/sorting-by-date-1/)
 * Hi there! This is a great plugin, and I appreciate the work you put into it!
 * Quick question: I only have two subsites on my multsite installation (www.openmasters.
   org/nl/ and [http://www.openmasters.org/us/](http://www.openmasters.org/us/)).
   I would like to have the posts from both of them display in the widget on the
   root site (www.openmasters.org) by date in order from most recent to oldest. 
   For some reason, the posts from the /nl/ subsite always display at the end of
   the list, rather than finding their way into the list according to their date.
   This way, posts from that blog are almost never on the home page (unless I randomize
   the posts).
 * Widget Settings:
    – Sort by Date = Yes – Sort by Blog ID = No – Sorting Order
   = Newest to Oldest
 * Any ideas? Most appreciated!
 * [http://wordpress.org/extend/plugins/network-latest-posts/](http://wordpress.org/extend/plugins/network-latest-posts/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [13 years ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805032)
 * Hello Alan,
 * Sorry for the late response, sort by date parameter was added specially to solve
   this kind of issues, you can check one of my websites where I’m using it: [8elite.com](http://8elite.com),
   however, it seems it isn’t working as expected. I’m adding this to my issues 
   tracker.
 * Just in case, this is the shortcode I’m using on [8elite.com](http://8elite.com):
 *     ```
       [nlposts titleonly=false
          ignore_blog=1,7
          paginate=true
          posts_per_page=4
          full_meta=true
          display_type=block
          sort_by_date=true
       ]
       ```
   
 *  [avivoo](https://wordpress.org/support/users/avivoo/)
 * (@avivoo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805089)
 * We have the same problem, it won’t work, if we change the publish date of the
   post.
 * Maybe it has something to do with field you use to sort the posts with?
 * Please help 🙂
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805090)
 * Hi, there’s an undocumented parameter which could help you solve this issue: `
   use_pub_date` when set to TRUE it will pick publication date instead of update
   date. Network Latest Posts picks update date by default so every time a post 
   is updated it’ll be put on top of the list. To use set the parameter like this:
 *     ```
       [nlposts ...other parameters... use_pub_date=true]
       ```
   
 * I hope this helps.
 * Cheers.
 *  [rchan](https://wordpress.org/support/users/rchan/)
 * (@rchan)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805104)
 * Hi Jose,
 * I couldn’t get the use_pub_date parameter to work and I couldn’t find any reference
   of it in the code. Was this functionality removed?
 * Thanks!
 *  Plugin Author [Jose Luis SAYAGO](https://wordpress.org/support/users/iluminatus/)
 * (@iluminatus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805105)
 * Hello [@rchan](https://wordpress.org/support/users/rchan/), sorry for the late
   response. The _use\_pub\_date_ and _honor\_sticky_ are two parameters provided
   as a patch which haven’t been added to this version just yet. I’m currently working
   on the next major release (v4.0) which has been delayed due to a really busy 
   schedule.
 * However, if you want to test, I’ve uploaded the patched version here: [Network Latest Posts v3.5.5 (unreleased patch)](https://gist.github.com/laelitenetwork/7912695),
   just download the file and replace the current one in **/wp-content/plugins/nlposts/**.
   Then you can use it like this:
 *     ```
       [nlposts ..other parameters... use_pub_date=true]
       ```
   
 * I’ll do my best to finish the next version as soon as possible. Until then, please
   try with this one instead. Thank you for your patience and for hanging there.
 * Best regards,
    José SAYAGO.
 *  [rchan](https://wordpress.org/support/users/rchan/)
 * (@rchan)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805106)
 * Thanks Jose! For some reason replacing the entire patched version prevented the
   site to load so I had to revert back to the old script and add in your use_pub_date
   coding and it worked like a charm!
 * Thanks again for the great support!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Sorting by date’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/network-latest-posts_61c601.svg)
 * [Network Latest Posts](https://wordpress.org/plugins/network-latest-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-latest-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-latest-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/network-latest-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-latest-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-latest-posts/reviews/)

## Tags

 * [sort by date](https://wordpress.org/support/topic-tag/sort-by-date/)

 * 6 replies
 * 4 participants
 * Last reply from: [rchan](https://wordpress.org/support/users/rchan/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/sorting-by-date-1/#post-3805106)
 * Status: not resolved