PHPackages                             helsingborg-stad/wp-page-for-posttype - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. helsingborg-stad/wp-page-for-posttype

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

helsingborg-stad/wp-page-for-posttype
=====================================

2.0.14(2mo ago)461[1 issues](https://github.com/helsingborg-stad/wp-page-for-posttype/issues)[1 PRs](https://github.com/helsingborg-stad/wp-page-for-posttype/pulls)MITPHPPHP &gt;=8.2CI passing

Since Apr 24Pushed 2mo ago11 watchersCompare

[ Source](https://github.com/helsingborg-stad/wp-page-for-posttype)[ Packagist](https://packagist.org/packages/helsingborg-stad/wp-page-for-posttype)[ RSS](/packages/helsingborg-stad-wp-page-for-posttype/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (8)Versions (31)Used By (0)

WP Page for post type
=====================

[](#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
-------------------------------

[](#multilingual-polylang-support)

When the [Polylang](https://polylang.pro/) plugin is active, the archive rewrite rules are generated **per language**:

- Active languages are enumerated via `pll_languages_list()`.
- For each language, the translated page is resolved via `pll_get_post($pageForPostType, $lang)`. Languages without a translation are skipped.
- The slug is built from the translated page's permalink (with the language context switched via `pll_switch_language`) 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`).

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance81

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Recently: every ~15 days

Total

20

Last Release

69d ago

Major Versions

1.1.0 → 2.0.02023-09-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/f46fe64973c3e89d15c745c0bf601c25983bafea81d30e64d4bf813a6f8c8c7c?d=identicon)[sebastianthulin](/maintainers/sebastianthulin)

---

Top Contributors

[![Svanmark](https://avatars.githubusercontent.com/u/457482?v=4)](https://github.com/Svanmark "Svanmark (9 commits)")[![Sven65](https://avatars.githubusercontent.com/u/10225982?v=4)](https://github.com/Sven65 "Sven65 (6 commits)")[![alexanderbomanskoug2](https://avatars.githubusercontent.com/u/39676080?v=4)](https://github.com/alexanderbomanskoug2 "alexanderbomanskoug2 (2 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 commits)")[![sebastianthulin](https://avatars.githubusercontent.com/u/797129?v=4)](https://github.com/sebastianthulin "sebastianthulin (2 commits)")[![petter-a](https://avatars.githubusercontent.com/u/40427478?v=4)](https://github.com/petter-a "petter-a (1 commits)")

---

Tags

getmunicipiomunicipio

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/helsingborg-stad-wp-page-for-posttype/health.svg)

```
[![Health](https://phpackages.com/badges/helsingborg-stad-wp-page-for-posttype/health.svg)](https://phpackages.com/packages/helsingborg-stad-wp-page-for-posttype)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
