[wordpress插件] default-sort-ascend默认排序升序

wordpress 插件 文章 2020-04-14 16:00 951 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

By default, the sort order for queries in WordPress is descending.

默认情况下,WordPress中查询的排序顺序是递减的。

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:

从您的WordPress仪表板:

Visit ‘Plugins > Add New’

访问“插件>添加新内容”

Search for ‘Default-Sort-Ascend’

搜索“默认升序”

Activate from your Plugins page.

从“插件”页面激活。

From WordPress.org:

来自WordPress.org:

Download Default-Sort-Ascend.

下载默认排序升序。

Upload ‘default_sort_ascend.php’ to the ‘/wp-content/plugins/’ directory.

将“ default_sort_ascend.php”上传到“ / wp-content / plugins /”目录。

Activate from your Plugins page.

从“插件”页面激活。

下载地址
https://downloads.wordpress.org/plugin/default-sort-ascend.zip
-EOF-

AI助手支持GPT4.0