Linux 软件免费装

PTAPS - Post Type Archive Pages and Permalink Settings

开发者 timohubois
更新时间 2024年8月30日 22:40
PHP版本: 8.0 及以上
WordPress版本: 6.6
版权: GPLv3 or later
版权网址: 版权信息

标签

permalink custom post types custom taxonomy archives

下载

1.3 1.6 1.7 1.5 1.0 1.2 1.1 1.4 1.8.1 1.8.2 1.8.3 1.8 1.8.4 1.8.5

详情介绍:

Select a regular page that should interact as archive for custom post types and allows to change the slug for custom post type single pages or custom taxonomies. The Plugin integrates seamlessly with Reading and Permalinks settings: Perfect for developers and site owners looking to optimize their WordPress site structure and improve SEO.

安装:

INSTALL WITHIN WORDPRESS (recommended)
  1. Open Plugins > Add new
  2. Search for Post Type and Taxonomy Archive Pages
  3. Click install and activate the plugin
INSTALL MANUALLY THROUGH FTP
  1. Download the plugin on the WordPress plugin page
  2. Upload the ‘archive-pages-and-permalink-settings-for-post-types-and-taxonomies’ folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题:

How to programmatically get the post used as the archive page for a custom post type?

An example can be found in the GitHub Repository.

Is this plugin compatible with WPML?

The plugin works with WPML in the same as WPML interacts with WordPress. The archive page should be available in all languages (otherwise you get an 404) and it is not possible to select a archive page per language.

How do I set a custom archive page for a post type?

Go to Settings > Reading in your WordPress admin. You'll find a new section where you can select a specific page to act as the archive for each of your custom post types.

Can I change the URL structure for my custom post types?

Yes. Navigate to Settings > Permalinks in your admin panel. You'll see a new section where you can modify the slug for each custom post type.

What about custom taxonomies - can I change their URLs too?

Absolutely. In the same Permalinks settings page, you'll find options to change the URL structure for your custom taxonomies.

Will this plugin automatically create new pages for my archives?

No, the plugin doesn't create new pages. It allows you to designate existing pages as archives for your custom post types. You need to create these pages yourself.

Does this work for all custom post types on my site?

The plugin supports all registered custom post types, including those created by themes or other plugins. However, it won't show options for post types that are not public or don't have archives enabled.

Is it possible to have different permalink structures for different post types?

Yes, the plugin allows you to set unique permalink structures for each custom post type and taxonomy independently.

Why aren't my permalink changes taking effect?

If you notice that your permalink changes aren't reflecting on your site, try the following steps:

  1. Go to Settings > Permalinks in your WordPress admin panel.
  2. Without making any changes, click the "Save Changes" button at the bottom of the page.
This action flushes the rewrite rules and often resolves issues with permalinks not updating. If the problem persists, try deactivating and reactivating the plugin, then save your permalinks again.

Do I need to update permalinks after changing archive pages or custom post type/taxonomy slugs?

Regular not but if you have any trouble it's a good practice to resave your permalinks after making changes to archive pages or modifying slugs. To do this:

  1. Go to Settings > Permalinks
  2. Scroll to the bottom and click "Save Changes"
This ensures that WordPress regenerates its rewrite rules with your new settings.

更新日志:

1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1.0