Skip to content

Instantly share code, notes, and snippets.

View themepaint's full-sized avatar

Shariful Islam themepaint

View GitHub Profile
@themepaint
themepaint / Custom Taxonomies
Created August 6, 2015 07:45
Custom Taxonomies in Custom Post
function team_taxonomies() {
$args = array(
'hierarchical' => true,
'labels' => array(
'name' => 'Team Members Type',
'singular_name' => 'Member Type',
'search_items' => __( 'Search Member' ),
'all_items' => __( 'All Member' ),
'parent_item' => __( 'Parent Member' ),
@themepaint
themepaint / Register Custom Post Type
Last active August 29, 2015 14:18
Register Custom Post Type
<?php
/*Register Custom Post Type*/
function tp_custom_portfolio(){
$labels=array(
'name'=>__('Portfolios'),
'singular_name'=>__('Portfolio'),
'add_new'=>__('Add New Portfolio'),
'edit_items'=>__('Edit Portfolio'),
'new_item'=>__('New Portfolio'),
'new_item' => __( 'New Portfolio', 'tp_portfolio_tx' ),