PHPackages                             garung/custompostype - 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. garung/custompostype

ActiveLibrary

garung/custompostype
====================

Create custom post type for wordpres

1.1(9y ago)014MITPHPPHP &gt;5.4

Since May 11Pushed 8y agoCompare

[ Source](https://github.com/garungabc/Customposttype)[ Packagist](https://packagist.org/packages/garung/custompostype)[ RSS](/packages/garung-custompostype/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

WP CUSTOM POST TYPE
===================

[](#wp-custom-post-type)

Custom post type

Description: Create simple Custom Post Type for wordpress

Parameters:

---

DEMO ```
/**
 * Class handle for Product Custom Post Type
 */
class ProductCustomPost
{
    public function __construct()
    {
        $fields = [
            'posttype'          => 'product',
            'posttype_label'    => 'Sản Phẩm',
            'posttype_singular' => 'Sản Phẩm',
            'posttype_slug'     => 'product',
            'taxonomy_type'      => 'category-product',
            'taxonomy_label'     => 'Categories',
            'taxonomy_singular'  => 'Product Category',
            'taxonomy_slug'      => 'category-product',
        ];
        new CustomPost($fields);
    }
}
Note important: After create custom post type successful, you need update permalink by: Setting => permalink
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

3291d ago

### Community

Maintainers

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

---

Top Contributors

[![k62bcntt](https://avatars.githubusercontent.com/u/12668807?v=4)](https://github.com/k62bcntt "k62bcntt (2 commits)")[![garungabc](https://avatars.githubusercontent.com/u/24909843?v=4)](https://github.com/garungabc "garungabc (1 commits)")

### Embed Badge

![Health badge](/badges/garung-custompostype/health.svg)

```
[![Health](https://phpackages.com/badges/garung-custompostype/health.svg)](https://phpackages.com/packages/garung-custompostype)
```

PHPackages © 2026

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