Support » Plugin: Network Latest Posts » Controlling widget total number of posts by publish date

  • Hi Jose, great plugin! We can probably figure it out, but so we don’t have to, do you have some code we can add to the plugin that uses “use_pub_date=true” for the widget, similar to the issue at Sorting by date

    When we use sorting order of newest to oldest with total number of posts set (e.g., 4), the total number of posts setting is ignored and the plugin looks to number of posts by blog to render the total number of posts.

    When we use sort by date with total number of posts set (e.g., 4), we get the desired number of posts, but they are ordered by latest update, not publish date.

    What we are trying to achieve is control the total number of posts in the widget and render the posts based on publish date, in newest to oldest order.

    http://wordpress.org/plugins/network-latest-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hi,

    Indeed the publication date is not yet implemented in the widget and tinyMCE scripts. This is planned to be included in the next major release, however I’ve released in Gist an update to the widget class to make them available until the next version is published, please download the file and replace the one in /wp-content/plugins/nlposts/ Download network-latest-posts-widget.php.

    Don’t worry about the “hack” as these changes will remain in the next major release. Please, let me know if it works as expected.

    Thanks for releasing the hack Jose. We tried several combinations and still couldn’t get it to work related to what we are trying to achieve. Regrettably, we need to use another solution for now, but will keep an eye out for your next official release.

    Plugin Author Jose Luis SAYAGO

    (@iluminatus)

    Hello, well that’s a shame. I’m aware there are some issues with the sorting functions, shamefully I can’t do major hacks on current version as they will break functionality.

    I’m rewriting the entire plugin so version 4.0 will include big changes, I keep in mind sorting is one of those very important functions people are expecting and I’m doing my best to release something useful without taking an eternity to finish it.

    I’ll post here when version 4.0 has been released so you can give it a try and see if it suits your needs.

    Thanks for your feedback, I appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Controlling widget total number of posts by publish date’ is closed to new replies.