[wordpress插件] Archive Control存档控制

wordpress 插件 文章 2020-02-20 20:30 507 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

A quick easy way to customize archive pages (or pages with lists of posts like custom post types, categories, tags, or custom taxonomy terms).

自定义存档页面(或包含自定义帖子类型,类别,标签或自定义分类术语的帖子列表的页面)的快速简便方法。

You can add editable content before or after the list, you can add a featured image.

您可以在列表之前或之后添加可编辑的内容,也可以添加特色图像。

It also allows you to set up the order and pagination on these pages separately from the rest of your site.

它还允许您在这些页面上与站点的其余部分分开设置顺序和分页。

Taxonomies can share settings across all terms, or have specific settings per term.

分类法可以跨所有术语共享设置,或者每个术语具有特定设置。

Administrators can change the settings, site editors can easily change the content.

管理员可以更改设置,站点编辑者可以轻松更改内容。

    • Archive Titles: If your theme is using the_archive_title() function, then you can modify the your archive titles.

      存档标题::如果您的主题使用the_archive_title()函数,则可以修改存档标题。

        • Remove Labels (Archive, Category, Tag, etc.) – Sometimes you just want to get rid of the annoying default words.
        • 删除标签(存档,类别,标签等)–有时您只想摆脱烦人的默认单词。

        • Custom Override – Allow an editor to write something custom for an archive headline.
        • 自定义覆盖-允许编辑者为存档标题编写自定义内容。

      • Featured Image: You can allow for a custom featured image that applies to an archive page and have it added above the list automatically, or add it yourself via a theme function.

        特色图片:您可以允许将自定义特色图片应用于存档页面,并自动将其添加到列表上方,或者通过主题功能自己添加。

      • Content Before List: Give your site editors the ability to edit content directly before the archive list.

        列表前的内容:使网站编辑者可以直接在存档列表之前编辑内容。

        You can have it automatically added, or use a theme function to give you more control over their placement (see the “Other Notes” tab).

        您可以自动添加它,也可以使用主题功能来更好地控制它们的位置(请参见“其他说明”标签)。

      • Content After List: Give your site editors the ability to edit content directly after the archive list.

        列表后的内容:使网站编辑者可以直接在存档列表后编辑内容。

        You can have it automatically added, or use a theme function to give you more control over their placement (see the “Other Notes” tab).

        您可以自动添加它,也可以使用主题功能来更好地控制它们的位置(请参见“其他说明”标签)。

      • Archive Order By: Instead of messing with code to change the order of an archive page, now you can do it in a few clicks.

        归档顺序:现在,您只需单击几下即可进行操作,而无需弄乱代码来更改归档页面的顺序。

          • Date Published
          • 发布日期

          • Title
          • 标题

          • Date Modified
          • 修改日期

          • Menu Order
          • 菜单顺序

          • Random
          • 随机

          • ID
          • ID

          • Author
          • 作者

          • Post Slug
          • 后Sl

          • Post Type
          • 帖子类型

          • Comment Count
          • 评论数

          • Parent
          • 父母

          • Meta Value
          • 元值

          • Meta Value (Numeric)
          • 元值(数字)

          • No Order
          • 无订单

        • Archive Order: In addition to the order by setting, you’ll also want to change the sort order direction.

          存档顺序:除了通过设置设置的顺序,您还需要更改排序顺序的方向。

            • Ascending
            • 升序

            • Descending
            • 降序

          • Archive Pagination: The pagination settings are easy to change without changing code.

            归档分页:分页设置很容易更改,而无需更改代码。

              • Show Everything
              • 显示所有内容

              • Custom Posts Per Page
              • 每页自定义帖子

            • Term Edit Options: For categories, tags, and custom taxonomies, you can choose a few additional things.

              术语编辑选项::对于类别,标签和自定义分类法,您可以选择一些其他内容。

                • Per Term Order & Pagination – Customize the order, and pagination on a per term basis.
                • 每学期订单和分页–自定义订单和分页。

                • Hide Description Field – You can choose to hide the term description field within the WordPress backend.
                • 隐藏描述字段–您可以选择在WordPress后端内隐藏术语描述字段。

                • Hide Parent Field – On hierarchal taxonomies, you can choose to hide the parent field within the WordPress backend.
                • 隐藏父字段–在分层分类法中,您可以选择在WordPress后端内隐藏父字段。

              The plugin doesn’t add any CSS or javascript to the front end.

              该插件未在前端添加任何CSS或javascript。

              The styling of the archive page is left completely up to you.

              存档页面的样式完全由您决定。

              This plugin should be friendly for power users and developers alike.

              这个插件应该对高级用户和开发人员都友好。

              You can use it entirely without changing theme code, or you can control the placement and functionality more exactly using the provided functions.

              您可以完全使用它,而无需更改主题代码,也可以使用提供的功能更精确地控制布局和功能。

              See the “Other Notes” tab.

              请参阅“其他说明”标签。

              Functions Provided by the Plugin

              插件提供的功能

              the_archive_top_content( boolean $html = true )

              the_archive_top_content( boolean $ html = true)

              Displays the top archive content on an archive page.

              在存档页面上显示 top 存档内容。

              Additional html markup can be removed by setting false.

              可以通过设置false来删除其他html标记。

              archive_top_content( boolean $html = true, string $post_type_slug = null, string $term_id = null )

              archive_top_content( boolean $ html = true, string $ post_type_slug = null, string $ term_id = null)

              >

              >

              Displays the top archive content for any post type anywhere on the site.

              显示网站上任何位置的任何帖子类型的 top 存档内容。

              Additional html markup can be removed by setting false.

              可以通过设置false来删除其他html标记。

              Post type is automatic if on an archive page.

              如果在存档页面上,则帖子类型为自动。

              get_archive_top_content( string $post_type_slug = null, string $term_id = null )

              get_archive_top_content( string $ post_type_slug = null, string $ term_id = null)

              Returns the top archive content for any post type anywhere on the site.

              为网站上任何位置的任何帖子类型返回 top 存档内容。

              Post type or term id is automatic if on an archive page.

              如果在存档页面上,则文章类型或术语ID是自动的。

              the_archive_bottom_content( boolean $html = true )

              the_archive_bottom_content( boolean $ html = true)

              Displays the bottom archive content on an archive page.

              在存档页面上显示底部存档内容。

              Additional html markup can be removed by setting false.

              可以通过设置false来删除其他html标记。

              archive_bottom_content( boolean $html = true, string $post_type_slug = null, string $term_id = null )

              archive_bottom_content( boolean $ html = true, string $ post_type_slug = null, string $ term_id = null)

              >

              >

              Displays the bottom archive content for any post type anywhere on the site.

              显示网站上任何位置的任何帖子类型的底部存档内容。

              Additional html markup can be removed by setting false.

              可以通过设置false来删除其他html标记。

              Post type is automatic if on an archive page.

              如果在存档页面上,则帖子类型为自动。

              get_archive_bottom_content( string $post_type_slug = null, string $term_id = null )

              get_archive_bottom_content( string $ post_type_slug = null, string $ term_id = null)

              Returns the top archive content for any post type anywhere on the site.

              为网站上任何位置的任何帖子类型返回 top 存档内容。

              Post type or term id is automatic if on an archive page.

              如果在存档页面上,则文章类型或术语ID是自动的。

              the_archive_thumbnail( string $size = 'large', string $post_type_slug = null, string $term_id = null )<

              the_archive_thumbnail( string $ size ='large', string $ post_type_slug = null, string $ term_id = null)<

              /strong>

              / strong>

              Display the archive thumbnail.

              显示存档缩略图。

              Default size is large but first parameter can set any valid image size, or an array of width and height values in pixels (in that order).

              默认大小很大,但是第一个参数可以设置任何有效的图像大小,或者以像素为单位的宽度和高度值数组(按此顺序)。

              Post type is automatic if on an archive page.

              如果在存档页面上,则帖子类型为自动。

              get_archive_thumbnail_src( string $size = 'large', string $post_type_slug = null, string $term_id = null )<

              get_archive_thumbnail_src( string $ size ='large', string $ post_type_slug = null, string $ term_id = null)<

              /strong>

              / strong>

              Returns the archive image url source.

              返回存档图像URL源。

              Default size is large but first parameter can set any valid image size, or an array of width and height values in pixels (in that order).

              默认大小很大,但是第一个参数可以设置任何有效的图像大小,或者以像素为单位的宽度和高度值数组(按此顺序)。

              Post type is automatic if on an archive page.

              如果在存档页面上,则帖子类型为自动。

              get_archive_thumbnail_id( string $post_type_slug = null, string $term_id = null )

              get_archive_thumbnail_id( string $ post_type_slug = null, string $ term_id = null)

              Returns the archive thumbnail id.

              返回档案缩略图ID。

              if you want to use other common WordPress attachment functions to retrieve data about the image.

              如果您想使用其他常见的WordPress附件功能来检索有关图像的数据。

              Post type or term id is automatic if on an archive page.

              如果在存档页面上,则文章类型或术语ID是自动的。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/archive-control directory, or install the zipped plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / archive-control 目录,或直接通过WordPress插件屏幕安装压缩后的插件。

    3. Activate the Archive Control plugin through the ‘Plugins’ screen in WordPress.
    4. 通过WordPress中的“插件”屏幕激活存档控制插件。

    5. Use the Settings->Archive Control screen to configure the settings for each custom post type.
    6. 使用“设置”->“存档控制”屏幕为每种自定义帖子类型配置设置。

    7. Once you have saved your settings, you can edit the titles, textareas, and featured image in the ‘Edit Archive Page’ submenu for each custom post type, or go to your term edit screens for taxonomies.
    8. 保存设置后,您可以在“编辑存档页面”子菜单中为每种自定义帖子类型编辑标题,文本区域和特色图片,或进入术语分类的编辑屏幕。

下载地址
https://downloads.wordpress.org/plugin/archive-control.1.3.3.zip
-EOF-

AI助手支持GPT4.0