Skip to content

Instantly share code, notes, and snippets.

View mustafix's full-sized avatar

Mustafizur Rahman mustafix

View GitHub Profile
<?php
function register_custom_posts(){
register_post_type('services',
array(
'labels' =>array(
'name' =>('Services'), // Display Name
'singular-name' =>('Service'),
<?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
// WP_Query arguments
$args = array (
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 10,
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'menu_order',
(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
{
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");