Skip to content

Instantly share code, notes, and snippets.

View mustafix's full-sized avatar

Mustafizur Rahman mustafix

View GitHub Profile
jQuery(document).ready(function($){
$(".all-portfolios").isotope({
itemSelector: '.single-portfolio',
layoutMode: 'fitRows',
});
$('ul.filter li').click(function(){
$("ul.filter li").removeClass("active");
$(this).addClass("active");
(function() {
tinymce.PluginManager.add('my_mce_button', function( editor, url ) {
editor.addButton( 'my_mce_button', {
title: 'Shortcode',
text: 'Shortcode', //Display name
icon: 'moderna',
type:'menubutton',
menu: [
// First Menu Start
{
<?php
// WP_Query arguments
$args = array (
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 10,
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'menu_order',
<?php
function custom_post_taxonomy(){
register_taxonomy(
'service_category', // unic name
'Service', // আপনি যে custom post এর আন্ডারে taxonomy করছেন সেই custom post এর register_post_type টি এখানে দিতে হবে ।
array(
'label' =>'Service Category', // Display name
<?php
function register_custom_posts(){
register_post_type('services',
array(
'labels' =>array(
'name' =>('Services'), // Display Name
'singular-name' =>('Service'),
<!--- Register sidebars and widgetized areas ---->
<?php
function cerate_widget_areas() {
register_sidebar( array(
'name' => __( 'Welcome Message', 'brightpage' ),
'id' => 'footer_widget',
<?php
add_theme_support('post-formats',array('gallery', 'aside', 'image', 'audio', 'video'));
add_theme_support('post-thumbnails');
add_image_size('protfolio-thumb',330,250,true);
?>
<?php
// functions.php
//Menu Register
function wp_theme_menu(){
register_nav_menus(array(
'header_menu' => 'Header Menu',
));
}
<?php
if ( ! function_exists( 'theme_function_name' ) ) :
function theme_function_name(){
// style sheet dynamic
wp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.min.css', array(), '3.1.0', 'all');
wp_enqueue_style('flipmart-main-css', get_stylesheet_uri() );
<?php
// function.php
function double_shortcode($atts, $content = null){
extract( shortcode_atts( array(
'category' => '',
'count' => '',
'title' => '',
'des' => '',