WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Darren Grant v1.0.4

Post Type Archive Pages

Place the archive pages for your post types in the structure of your content pages. The power of pages and post types combined!

Post Type Archive Pages

The facts

Rating
5★ from 1
Active installs
300+
Price
Free
Last updated
30 Jan 2020
Added
Dec 2019
Requires WP
5.0
Tested up to
WP 5.3.23
Requires PHP
5.6
Downloads
7,228

Our analysis

AI-assisted

Post Type Archive Pages is a WordPress plugin that allows you to designate specific pages as archive pages for your custom post types. This enables you to control the permalink structure of these archive pages and allows them to be nested under other pages within your site.

Once activated, you can select the archive page for each registered post type through the Settings menu. The plugin also provides template functions to assist in theme development and enhances menu functionality, marking the current menu item appropriately when viewing post type archives.

Best for: This plugin is suitable for WordPress developers looking to customise archive pages for custom post types.

What it does well

  • Allows selection of custom archive pages for post types
  • Enables control over permalink structure
  • Integrates well with Advanced Custom Fields
  • Provides template functions for theme development
  • Enhances menu item visibility for post type archives

Where it falls short

  • Limited information on additional features or support
  • Directory score indicates potential areas for improvement

Verdict

Post Type Archive Pages offers useful functionality for managing custom post type archives, particularly for those familiar with WordPress development.

From the developer

Darren Grant's own description of Post Type Archive Pages, lightly tidied.

Post Type Archive Pages allows you to select pages from within your content page structure to be the archive pages for your custom post types. This gives you control of the permalink for your archive pages and allows them to be nested under other pages. It also sets the permalink base for single posts of that post type and term archive for the post type’s taxonomies.

Once the plugin is installed and activated you’ll be able to select the archive page for each of your registered post types under Settings > Reading.

Templating

WordPress will look for archive page templates for the pages that you set as archive pages. So archive-$posttype.php and archive.php will be used rather than page.php.

There are also a few functions available that may be helpful in building themes. They are accessed on the plugin’s main instance, which is returned by a call to post_type_archive_pages().

get_archive_page

Returns the page object for the archive page of the provided post type slug. If called from a post type archive template, a singular template or a term archive and a slug isn’t provided, the relative post type will be used. e.g.

$page = post_type_archive_pages()->get_archive_page('book');

get_archive_page_post_type

Returns the post type object that the provided page ID is the archive page for. e.g.

$postType = post_type_archive_pages()->get_archive_page_post_type(5);

Menu – Enhancements

Archive pages added to the menu will be marked as the current menu item when viewing the post type archive and the current menu item’s parent / ancestor when viewing a post of that type. The related CSS classes will also be applied.

Advanced Custom Fields – Enhancements

This plugin is particularly effective when paired with Advanced Custom Fields. It registers additional page type location rules allowing you to add fields to all archive pages or the archive page for a particular post type. So if your listing page requires content like a description or header image you can place fields for those on the archive page itself.

To access fields like these in your archive template you need only call

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for libraries and archives.

Starter Templates

The growing library of 300+ ready-to-use templates that work with all WordPress themes including Astra, Hello,...

Free 1M+ installs 4.9★ (4,745)
SVG Support

Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling...

Free 1M+ installs 4.8★ (355)
Enable Media Replace

Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real...

Free 600k+ installs 4.4★ (302)
Happy Addons for Elementor

HappyAddons packs Header Footer Builder, Megamenu, Single Post, Archive Page, & 500+ Ready Templates into...

Free 400k+ installs 4.8★ (487)
CMB2

CMB2

91

CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.

Free 300k+ installs 5★ (91)
Extendify

The best WordPress templates, pattern, and layout library with 1,000+ designs built for the Gutenberg block ed...

Free 500k+ installs 4.7★ (10)