[wordpress插件] Category Sub-Blogs类别子博客

wordpress 插件 文章 2020-03-18 17:40 499 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Motivation

动机

WordPress offers comprehensive tools for tailoring your content.

WordPress提供了用于量身定制内容的综合工具。

Categories, for one, allow a reader to focus on content most relevant to him.

类别使读者可以专注于与自己最相关的内容。

However, the current category behavior has several shortcomings:

但是,当前的类别行为有几个缺点:

    • Requires expertise from the reader (he can’t access a “ready-made” blog for his topic)
    • 需要读者的专业知识(他无法访问其主题的“现成”博客)

    • Cannot search within a category (or filter by tag, date etc.).

    • 无法搜索在类别中(或按标签,日期等进行过滤)。

      This can be referenced in short as no closure.

    • 可以简称为不关闭

    • Hard to get the RSS feed within a category
    • 很难获得类别中的RSS feed

    • Cannot change blog title when browsing a specific category (to create a look & feel of a dedicated blog)
    • 浏览特定类别时无法更改博客标题(以创建专用博客的外观)

    An alternative approach, opening several separate blogs has other shortcomings:

    另一种方法是,打开多个单独的博客还有其他缺点:

      • Inability to aggregate several topics together
      • 无法将多个主题汇总在一起

      • No single identity for author / subscriber
      • 作者/订阅者没有单一身份

      • No easy exploration of other content offered by same author
      • 无法轻松浏览同一作者提供的其他内容

      Category Sub-Blogs

      类别子博客

      The solution offered in this plugin is to treat categories as separate sub-blogs.

      此插件中提供的解决方案是将类别视为单独的子博客。

      This consists of the following aspects:

      这包括以下几个方面:

        1. Offer closure while browsing a category: All filtering actions (e.g. searching, filtering by date or tag) only access posts within the currently selected category.
        2. 浏览类别时关闭:所有过滤操作(例如搜索,按日期或标签过滤)仅访问当前所选类别中的帖子。

        3. Following a link from outside automatically selects the relevant category.
        4. 从外部跟随链接会自动选择相关类别。

        5. RSS feeds & The blog name change for different category selections.
        6. RSS供稿&博客名称针对不同的类别选择而更改。

        Specialized Templates

        专业模板

        In order to enhance the look-and-feel of separate sub-blogs, it is advisable to use custom themes for your categories.

        为了增强单独子博客的外观,建议对类别使用自定义主题。

        Luckily, this is already a built-in feature in wordress.

        幸运的是,这已经是wordress的内置功能。

        Read this.

        阅读

        Known Bugs (& Possible Solutions)

        已知错误(及可能的解决方案)

          1. Date-based archives are currently not supported and will break once a category is selected.

          2. 当前不支持基于日期的存档,一旦选择了类别,该存档就会中断。

            You can ammend this by having a permalink structure of the type %category%/%year%/%month%/%day%/%postname%.

            您可以通过具有%category%/%year%/%month%/%day%/%postname%类型的永久链接结构来对此进行修改。

            If anyone has an elegant solution for this one, I would be more than happy if you would contact me.

          3. 如果有人对此有一个优雅的解决方案,那么如果您与我联系,我将非常高兴。

          4. Posts associated with more than one category are not supported (the reader might switch from one category to the other).

          5. 不支持与一个以上类别关联的帖子(读者可能会从一个类别切换到另一个类别)。

            The reason is that only one category will show up in the permalink, as described

            原因是永久链接仅显示一个类别,如

            >here.

            >这里。

            This can be fixed by rewriting all permalinks, which might be implemented in the future.

          6. 可以通过重写所有可能在将来实现的永久链接来解决此问题。

          7. Category hierarchy is currently not supported.

          8. 当前不支持类别层次结构

            While this will not break your blog, it does not behave perfectly.

            尽管这不会破坏您的博客,但是它的行为并不完美。

            When accessing any post, the plugin will filter out content that does not belong to the most specific category in the permalink.

            访问任何帖子时,该插件都会过滤掉不属于固定链接中最具体类别的内容。

          9. Selected category should be highlighted, and the main page should appear in the category list.

          10. 应突出显示所选类别,并且主页应显示在类别列表中

            This is more of a to-do thing.

          11. 这更多的是要做的事情。

安装步骤

    1. Unzip category-sub-blogs.zip to the /wp-content/plugins/ directory
    2. category-sub-blogs.zip 解压缩到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress admin
    4. 通过WordPress管理员中的“插件”菜单激活插件

    5. For best results, it is advised to use pretty permalinks starting with %category%.

    6. 为了获得最佳结果,建议使用以%category%开头的漂亮的永久链接

      Be advised, that this may have a performance caveat (more info on the codex page).

      请注意,这可能会对性能产生警告(有关详细信息,请参见 codex页面)。

      li>

      li>

    7. Read the Description & Other Notes sections
    8. 阅读说明其他说明部分

下载地址
https://downloads.wordpress.org/plugin/category-sub-blogs.0.1.1.zip
-EOF-

AI助手支持GPT4.0