Skip to content
LabCatsCode
  • Getting Started
  • Current Courses
    • Make Your Own Web App
    • Basics of Web Apps
    • Python & Data Science
  • About Us
    • Who are we?
    • Course Paths
    • FAQ
    • Web Apps by Our Students
    • Contact Us
    • News
LabCatsCode
  • Getting Started
  • Current Courses
    • Make Your Own Web App
    • Basics of Web Apps
    • Python & Data Science
  • About Us
    • Who are we?
    • Course Paths
    • FAQ
    • Web Apps by Our Students
    • Contact Us
    • News

Creating Custom Post

WordPress: Customizing & Creating Plugins Custom Post Type Creating Custom Post

Create a folder called post_types and in that create a file called class.wib-slider-cpt.php.

Basic structure looks like this:

<?php
   if (!class_exists ('Wib_Slider_Post_Type')){
      class Wib_Slider_Post_Type{
         function __contstruct(){
            add_action('init',array($this, 'create_post_type'));

          }

         public function create_post_type(){

          }
        }
    }
?>

Now need to register our post type.

Previous Lesson
Back to Lesson
Course Home Expand All
Behind the Scenes
2 Topics
functions.php
styles
Customizing: Adding PHP Pages
The Basics of Plugins
6 Topics
The Header.
Hooks & Action Filters
Hooks
Filters
Tools to Use
Licenses, the GPL and WordPress
Creating Your Plugin
3 Topics
Create the Files
Initial Setup
Activated, Deactivate, Uninstall Methods
Custom Post Type
1 Topic
Creating Custom Post
Adding Snippets
Silder Plugin Example
Return to WordPress: Customizing & Creating Plugins
© 2025 LabCatsCode | Powered by Beaver Builder
Contact Us: info@labcatscoding.com
Login
Accessing this course requires a login. Please enter your credentials below!

Lost Your Password?