WP Page for post type
Adds the ability to place a page on an archive page and/or place a posttype archive on a page.
by Kristoffer Svanmark, Sebastian Thulin · github.com/helsingborg-stad/wp-page-for-posttype · website
★ 4stars
5release downloads
6composer installs
1forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/helsingborg-stad/wp-page-for-posttype/releases/download/2.0.3/release.zipAlso on Packagist as helsingborg-stad/wp-page-for-posttype:
composer require helsingborg-stad/wp-page-for-posttypeFrom the readme
WP Page for post type
Select a page to act as the archive of a custom post type. The post type's
archive slug is rewritten to match the selected page's permalink.
Multilingual (Polylang) support
When the Polylang plugin is active, the archive
rewrite rules are generated per language:
Active languages are enumerated via plllanguageslist().
For each language, the translated page is resolved via
pllgetpost($pageForPostType, $lang). Languages without a translation
are skipped.
The slug is built from the translated page's permalink (with the
language context switched via pllswitchlanguage) so URLs like
/en/books/ and /sv/bocker/ are produced for their respective
languages.
Each rewrite rule includes the lang query variable so Polylang can
resolve the correct language content on the archive request.
In single-language installations (Polylang inactive) the original
behaviour is preserved.
Note: After activating/configuring Polylang or changing the
"page for post type" setting, flush rewrite rules (Settings → Permalinks →
Save, or wp rewrite flush).
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 2.0.14 | Apr 24, 2026 | — | — |
| 2.0.12 | Apr 22, 2026 | — | — |
| 2.0.10 | Apr 21, 2026 | — | — |
| 2.0.8 | Feb 23, 2026 | — | — |
| 2.0.6 | Feb 23, 2026 | — | — |
| 2.0.4 | Nov 20, 2025 | — | — |
| 2.0.3 | Sep 10, 2024 | release.zip | 1 |
| 2.0.2 | Dec 5, 2023 | release.zip | 4 |
| 2.0.1 | Sep 28, 2023 | — | — |
| 2.0.0 | Sep 26, 2023 | — | — |
| 1.0.7 | Jun 24, 2020 | — | — |