Опис
By default, the sort order for queries in WordPress is descending. This will produce posts in reverse chronological order, the desired result for most blogs.
In some cases, it may be desirable to have posts in ascending order. When activated, this plugin changes the default order from descending to ascending. This affects all queries (home page, archives, dates, etc). Deactivating the plugin returns the default order to descending.
IF YOU DON’T LIKE THE RESULT, IT’S THE THEME
How well this works out varies from theme to theme. Depending on a theme’s navigation labels for posts, things may or may not make sense. If labels are “Earlier” and “Later”, things will seem backwards. Some themes make sense either way. For example, in the “Twenty Fifteen” theme, “Previous” is above “Next”, suggesting list order rather than time.
Встановлення
From your WordPress dashboard:
Visit ‘Plugins > Add New’
Search for ‘Default-Sort-Ascend’
Activate from your Plugins page.
From WordPress.org:
Download Default-Sort-Ascend.
Upload ‘default_sort_ascend.php’ to the ‘/wp-content/plugins/’ directory.
Activate from your Plugins page.
Відгуки
Учасники та розробники
“Default Sort Ascend” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “Default Sort Ascend” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.