Linux 软件免费装
Banner图

Archive Control

开发者 thejester12
更新时间 2023年12月1日 00:13
捐献地址: 去捐款
PHP版本: 4.1 及以上
WordPress版本: 5.2.2
版权: GPLv2 or later
版权网址: 版权信息

标签

tag title order custom post type featured image category post type pagination post types archive custom taxonomy term archive page archive template

下载

1.1.1 1.2.1 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3

详情介绍:

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. The plugin doesn't add any CSS or javascript to the front end. 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.

安装:

  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. Activate the Archive Control plugin through the 'Plugins' screen in WordPress.
  3. Use the Settings->Archive Control screen to configure the settings for each custom post type.
  4. 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.

屏幕截图:

  • Settings for each custom post type that has an archive.
  • Settings for categories, taxonomies, and custom taxonomies.
  • For custom post types, give your editors the ability to edit archive headlines, a featured image, and content before and after the list.
  • For taxonomies, give your editors the ability to add a featured image, content before and after the list, and customize order and pagination per term.

升级注意事项:

1.3.3
  • Protect against incorrect users seeing Edit Archive Page Link in WP Admin Bar
1.3.2
  • Fixed edit links after some code reorganization
1.3.1 Fixed a small issue with Term content deletion 1.3.0 Added features to modify taxonomy term archive pages 1.2.1 SVN issue fix 1.2.0 Fixed a few bugs and introduced basic taxonomy archive modifications 1.1.1 Added View and Edit buttons where they would be helpful 1.1.0 Added Archive Featured Image functionality and functions for developers 1.0.0 Initial Version

常见问题:

What is an archive page?

An archive page is really just WordPress terminology for a page with a list of multiple pieces of content (posts). By default this content is in date order, with the newest appearing at the top, like a blog, and would be split into pages with 10 posts each. WordPress gives you the ability to manipulate this list through code, changing the order, pagination and other characteristics, but doesn't give you an interface for doing so. WordPress also by default does not have any interface for storing content like images and text that are related to a specific archive page. That is the problem that this plugin tries to provide the solution for.

Why won't my custom post type appear in the Archive Control settings?

It depends a lot how your custom post type is created. It must be set to "public", and it must have "has_archive" set to true, or a string. Be sure to check those settings first!

Why can't I customize the archive title?

The archive title functionality requires that a special function is used to display it: the_archive_title(). This is an official WordPress function, but it is relatively new. If your theme does not use this function, and either hardcodes the title or uses a different function, then this plugin won't be able to help without you modifying the theme template.

How do you add in the content before/after archives?

The "Automatic" setting uses the "loop_start" and "loop_end" WordPress hooks to inject the content. If you would rather use the "Manual Function" setting, then we give you the functions the_archive_top_content() and the_archive_bottom_content() to place in your theme as you choose.

What if I want to change the size of the featured image that is being displayed?

This cannot be done through the interface (it shows the "large" size by default), but is entirely possible to do by putting functions in your theme files. The functions provided by this theme are listed in the "Other Notes" tab. For example, the_archive_thumbnail('thumbnail') would change the size to a thumbnail. If you want to create a new size you can either send along an array like this: the_archive_thumbnail(array(500,200)) or register a new size with the add_image_size() functionality.

What is a custom post type and how would I make one?

A custom post type allows you to make the content adding/editing process more specific for different kinds of content. By default it works similarly to a "Post", but can be modified to have different settings and even unique custom fields. To create one you could do it several ways:

What is a custom taxonomy and how would I make one?

A custom taxonomy allows you to categorize specific elements separately from others. It works similarly to a "Category" or "Tag". To create one you could do it several ways:

更新日志:

1.3.3 1.3.2 1.3.1 1.3.0 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0