Skip to content

Instantly share code, notes, and snippets.

Working from home

Mahmud Sohag Gazi IamSohaggazi

Working from home
View GitHub Profile
View free submit tools
IamSohaggazi / wordpress custom post type with icon
Last active Jun 15, 2019
if you create post type featured box or service box with supported icon and featured image you can use this below code
View wordpress custom post type with icon
* register custom post type <go to function.php >
function neuiro_custom_post_type(){
'labels' => array(
'name' => __('Features'),
'singular_name' => __('feature'),
View Capie Theme Shortcode Function Full
* Shortcode_Button loader
* Handles checking for and smartly loading the newest version of this library.
* Shortcode_Button - Tinymce and Quicktag buttons for outputting shortcodes.
* @category WordPressLibrary
* @package Shortcode_Button
* @author Justin Sternberg <>
View Reset Woocommarce Top Sale
//** capie Woocommerce Theme Options Panel **//
// show all sale in onepage
$cmb = show_all_shop_items( array(
'id' => 'show_top_items',
'title' => 'Best Sellar Center',
'object_types' => array( 'page' ), // post type
'show_on' => array( 'data_post_say_intro' => 'id', 'value' => array( 50, 24 ) ),
'context' => 'normal', // 'normal', 'advanced', or 'side'
'priority' => 'high', // 'high', 'core', 'default' or 'low'
View slider!bpxkQKoY!JHlKU9TArTgmEaj05JhNL0iRb2KYZ_naI6qTmfyO6kM
View custom css
/*custom css by m.s.g*/
.row-portfolio {
margin: 0 -10px
.row-portfolio .portfolio-item {
padding: 0 10px;
View google page ranking
def pagerank(G, alpha=0.85, personalization=None,
max_iter=100, tol=1.0e-6, nstart=None, weight='weight',
"""Return the PageRank of the nodes in the graph.
PageRank computes a ranking of the nodes in the graph G based on
the structure of the incoming links. It was originally designed as
an algorithm to rank web pages.
View responsive media query CSS
/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
/* Tablet & mobile Layout: 768px. */
@media only screen and (max-width: 991px) {
View kitty-startup template css
f-name: kitty
author: mahmud sohag gazi
/*grid system*/
View Wordpress Functions
Root url for website
<?php site_url(); ?>
<?php bloginfo('url'); ?>
title of specific post/page
<?php wp_title(); ?>
Site Home URL
You can’t perform that action at this time.