8000 GitHub - SErr0r/OOP-Custom-Post-Type: Dynamically Generate Custom Post Types for your WordPress themes with single line of code,
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SErr0r/OOP-Custom-Post-Type

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

OOP-Custom-Post-Type.


Generate Custom Post Types with a single line of code by extending the class.

Usage.


Drop the file in your theme inc folder and add it in functions.php

require get_template_directory() . '/inc/oop-cpt-generator.php';

now make new instance of the class and register the post types.

// features post type
$feature_args = array(
	'supports' => array('title', 'editor'),
);
new OOP_CPT_Generator( 'feature', $feature_args );

// services post type
$service_args = array(
	'supports' => array('title', 'editor'),
);
new OOP_CPT_Generator( 'service', $service_args );

// portfolio post type
new OOP_CPT_Generator( 'portfolio' );

// testimonial post type
new OOP_CPT_Generator( 'testimonial' );

// faq post type
$service_args = array(
	'supports' => array('title', 'editor'),
);
new OOP_CPT_Generator( 'faq', $service_args );

Authors and Contributors


OOP Post Type Generator is written by Aamer Shahzad @talentedamer a WordPress theme developer on WordPress.org and OOPthemes.com

Support or Contact


Please visit OOPThemes support forum if you have any issue regarding the use of OOP Post Type Genertator.

About

Dynamically Generate Custom Post Types for your WordPress themes with single line of code,

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%
0