Skip to content

Our "Set Archives Pages" plugin for native WP and custom taxonomy archives

Notifications You must be signed in to change notification settings

devcollaborative/archive-pages-taxonomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Archive Pages - Taxonomy

Replace WordPress's default auto-generated taxonomy term archive with a manually created Page. For each term, select the page from a dropdown of all site pages. Good for creating topic landing pages.

Installation

Clone or download this repository and add it to the wp-content/plugins directory.

How to Use

Go to Settings > Archive Pages and choose a page to set as the archive page for each taxonomy term. Pages must already be published.

The plugin uses the Settings API, so users must have 'manage_options' capability.

When a selected page is saved, the term_link filter replaces that page's URL replaces the taxonomy link ( term_link ) so that the user is directed to the taxonomy landing page instead of the auto-generated archive.

The term archive will still exist at its assigned URL, but there will be no WP-generated navigation to it.

Permalinks are automatically flushed when a setting is saved.

Which taxonomies are affected

The settings page lists all taxonomies that are set to "public" and "show in menu". This includes category, post_tag, and similar custom taxonomies for custom post types. It excludes post_format and other special built-in taxonomies.

About

Our "Set Archives Pages" plugin for native WP and custom taxonomy archives

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages