Projects Post Type
Registers a custom post type "Project" with REST API support.
by Awais Awan · github.com/awaisaliawandxb/wordpress-project-type-plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/awaisaliawandxb/wordpress-project-type-plugin/archive/refs/heads/main.zip📁 Projects Post Type Plugin
Description: A WordPress plugin that registers a custom post type named "Project" with REST API support.
Use it to create and manage projects, and fetch them in external applications (like Laravel) via the WordPress REST API.
🚀 Features
- Registers a custom post type “Project”
- Supports Title, Excerpt, Content, and Featured Image
- REST API enabled (
/wp-json/wp/v2/projects) - Displays projects in the WordPress admin menu
- Includes optional sample projects (auto-created once on activation)
- Easy to integrate with external systems such as Laravel, React, or Vue
⚙️ Installation
-
Upload the plugin:
- Copy the folder
projects-post-typeinto your WordPress directory:wp-content/plugins/projects-post-type/
- Copy the folder
-
Activate the plugin:
- Go to your WordPress Admin → Plugins
- Find Projects Post Type → Click Activate
-
(Optional) Sample Projects:
- The plugin automatically inserts 2 demo projects when first activated.
- You can remove or edit them from the Projects menu in your dashboard.
🧱 Custom Post Type Details
| Setting | Value |
|---|---|
| Post Type Key | project |
| REST API Base | /wp-json/wp/v2/projects |
| Menu Icon | Portfolio (dashicons-portfolio) |
| Supports | Title, Editor, Excerpt, Featured Image |
| Archive Page | /projects |
🧩 REST API Example
Fetch all projects in JSON format:
GET https://awaisawan.tech/projects/wp-json/wp/v2/projects?_embed