How to sort and order your recent posts with Advanced Recent Posts

The new version of the plugin can now display the list of posts with most recent post at the top, not only by date, which is quite logical, because they are still recent posts, but also in other ways. For example, you can sort all your posts by title, or even randomly. Here is the complete list of options for sorting:

  • Title
  • Name (post slug)
  • Date created
  • Date modified
  • Random
  • Number of comments

As you can see, they are not exactly recent posts, and just a convenient and beautiful way to display all your posts :)

It’s important to understand that sorting is among all your posts. For example, if you display 10 posts with the plugin and sort them by title, then the choice will be made among all the posts, and not only among the last 10. However, 10 posts will be displayed, sorted by title, for example, from A to D.

Still not clear enough? OK, suppose you have 10 posts. That’s how they are displayed, sorted by date:

  1. 20.06.2015 Vivamus ultrices diam a neque facilisis fermentum
  2. 19.06.2015 Duis a nisl lobortis, viverra dui ut, pulvinar urna
  3. 18.06.2015 Cras facilisis augue a posuere dignissim
  4. 17.06.2015 Aliquam id sollicitudin lectus
  5. 16.06.2015 Proin tincidunt, sapien eu eleifend posuere
  6. 15.06.2015 Ut at placerat turpis
  7. 14.06.2015 Maecenas ullamcorper turpis tristique sem convallis ultrices
  8. 13.06.2015 Aliquam arcu augue, viverra ac auctor vitae
  9. 12.06.2015 Nunc vitae dolor nec enim elementum euismod
  10. 11.06.2015 Fusce hendrerit efficitur turpis et facilisis

Do you want to display 5 posts, sorted by title, in alphabetical order, from A to Z. In such a case will be displayed not recent 5 posts, sorted by title, and 5 posts of the entire list, sorted alphabetically. Like this:

  1. 13.06.2015 Aliquam arcu augue, viverra ac auctor vitae
  2. 17.06.2015 Aliquam id sollicitudin lectus
  3. 18.06.2015 Cras facilisis augue a posuere dignissim
  4. 19.06.2015 Duis a nisl lobortis, viverra dui ut, pulvinar urna
  5. 11.06.2015 Fusce hendrerit efficitur turpis et facilisis

To change the display recent posts have only one option: «Reverse post order: display the latest post last in the list. By default the latest post displays first.» – It changes the display order of your posts on the reverse.

Whether it is possible have more flexibility to make a selection sort is the last posts, such as title, from A to Z? I think so, and I will add this option if it is someone who needs it.

Waiting for your comments!