Skip to content

Instantly share code, notes, and snippets.

View cpaul007's full-sized avatar
🏠
Working from home

Chinmoy Paul cpaul007

🏠
Working from home
View GitHub Profile
@cpaul007
cpaul007 / footer_meu.php
Created August 17, 2014 05:05
Footer Menu
@cpaul007
cpaul007 / slider-cpt.php
Created November 18, 2014 16:13
Custom Post Type: Slider
<?php
/*-----------------------------------------------------------------------------------*/
/* Custom Post Type - Slider */
/*-----------------------------------------------------------------------------------*/
if ( ! function_exists( 'gd_add_cpt_slider' ) ) {
function gd_add_cpt_slider() {
// "Slider" Custom Post Type
$labels = array(
@cpaul007
cpaul007 / gdslider.php
Last active August 29, 2015 14:09
gdSlider function
<?php
// Don't include the opening PHP tag
/*
* Filename: gdslider.php
* Author: Genesis Developer
* @link: http://genesisdeveloper.me/adding-fullwidth-flexslider-on-home-page-in-minimum-pro-theme/
* @since: 1.0
* @license: GPL 2.0+
*/
@cpaul007
cpaul007 / slider.css
Created November 18, 2014 16:30
CSS for flexslider
.minimum .flexslider {
background: #fff;
border: none;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
margin: 0 auto;
@cpaul007
cpaul007 / gfpc-genesis-simple-share.php
Last active August 29, 2015 14:23
Displaying Genesis Simple Share icons in Genesis Featured Posts Combo Plugin
<?php
// Do not include PHP open tag
/**
* Displaying Genesis Simple Share icons in Genesis Featured Posts Combo Plugin
*
* @author Genesis Developer
* @link http://genesisdeveloper.me
*
* @since 1.0
@cpaul007
cpaul007 / gfpc_prev_next_nav.php
Created June 18, 2015 11:33
Replacing default prev/next arrow with font awesome icon
<?php
//* Do not add this opening tag
/**
* Replacing default Prev/Next arrow with Font Awesome icon
*
* Add the following codes in functions.php file
*
* @author Genesis Developer
* @link http://genesisdeveloper.me
@cpaul007
cpaul007 / add_catgeory_tags_in_page.php
Last active August 29, 2015 14:23
Adding Categories and Tags into Pages
<?php //* Do not include this opening tags
//* All codes will go to functions.php file
/**
* Displaying categories and tags at bottom of the pages
*
* @author Genesis Developer
* @link http://genesisdeveloper.me
* @since 1.0
@cpaul007
cpaul007 / category_archive_in_gallery_format.php
Last active August 29, 2015 14:24
Category archive page in gallery format
@cpaul007
cpaul007 / simple_social_icons_css.php
Last active October 1, 2015 06:13
Showing different color style
<?php //* do not include this opening PHP tag
/**
* Add custom css in <head> tag
*
* @author Genesis Developer
* @license GPL-2.0+
* @link http://genesisdeveloper.me/
* @copyright Copyright ( c ) 2015, Genesis Developer.
*/
@cpaul007
cpaul007 / get_unique_post_meta_values.php
Created August 7, 2014 07:49
Getting all the values associated with a specific custom post meta key, across all posts
<?php
/* Don't include the opening PHP tag*/
/**
* Description: Getting all the values associated with a specific custom post meta key, across all posts
* Author: Chinmoy Paul
* Author URL: http://pwdtechnology.com
*
* @param string $key Post Meta Key.
*
* @param string $type Post Type. Default is post. You can pass custom post type here.