PHPackages                             pkj/pkj-any-parent-type - 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. pkj/pkj-any-parent-type

ActiveWordpress-plugin

pkj/pkj-any-parent-type
=======================

This plugin lets you select what parent pages you allow to set for custom post types. By default only the same type is allowed.

0.0.1(11y ago)0171GPLv2 or laterPHPPHP &gt;=5.3.2

Since Aug 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/peec/pkj-any-parent-type)[ Packagist](https://packagist.org/packages/pkj/pkj-any-parent-type)[ Docs](https://github.com/peec/pkj-any-parent-type)[ RSS](/packages/pkj-pkj-any-parent-type/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PKJ Any Parent Type, Wordpress Plugin
=====================================

[](#pkj-any-parent-type-wordpress-plugin)

This plugin lets you select what parent pages you allow to set for custom post types. By default only the same type is allowed.

[![Alt text](/screenshot-1.png?raw=true)](/screenshot-1.png?raw=true)

The PKJ Any Parent Type plugin lets you customize what parent post types that are allowed for each custom post type. This makes it possible to have one-to-many relationship between custom post types and not just itself.

Lets say you have two custom post-types:

- Person
- Activiy

The *Person* CPT contains, well, a person. Each person can have many *Activity*. This is not possible using vanilla wordpress without many hacks, this plugins helps you do this easily! Just configure it in the plugins options page that "The Activity type can have Parent as Person", and the "Person can have parent as "Page".

Now we create a post of type *Page* named "Persons".

We create a post type of "Person" titled "Peter" and set the parent page to "Persons".

We create a post type of "Activity" named "Ran two miles" and set the parent person to "Peter".

Now you have great urls:

-  &lt;- Page
-  &lt;- Person
-  &lt;- Activity

Creating custom post types.
---------------------------

[](#creating-custom-post-types)

There are just one thing to remember, set "hierarchical" to true when creating new post types. Do not include the "rewrite" option.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

4300d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88b748fa2f0dcacab307a6305e98032de7adb93f955bbaf3c6fe029a7369ac84?d=identicon)[peec](/maintainers/peec)

---

Top Contributors

[![peec](https://avatars.githubusercontent.com/u/131546?v=4)](https://github.com/peec "peec (5 commits)")

---

Tags

pluginwordpressgridsource

### Embed Badge

![Health badge](/badges/pkj-pkj-any-parent-type/health.svg)

```
[![Health](https://phpackages.com/badges/pkj-pkj-any-parent-type/health.svg)](https://phpackages.com/packages/pkj-pkj-any-parent-type)
```

###  Alternatives

[10up/elasticpress

Supercharge WordPress with Elasticsearch.

1.3k374.3k6](/packages/10up-elasticpress)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47078.8k](/packages/sybrew-the-seo-framework)[iceicetimmy/acf-post-type-selector

Post type selector for Advanced Custom Fields.

559.0k](/packages/iceicetimmy-acf-post-type-selector)

PHPackages © 2026

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