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, 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:
[nlposts titleonly=false
ignore_blog=1,7
paginate=true
posts_per_page=4
full_meta=true
display_type=block
sort_by_date=true
]
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 🙂
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.
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!
Hello @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), 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.
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!