This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function register_custom_posts(){ | |
register_post_type('services', | |
array( | |
'labels' =>array( | |
'name' =>('Services'), // Display Name | |
'singular-name' =>('Service'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// WP_Query arguments | |
$args = array ( | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'posts_per_page' => 10, | |
'nopaging' => true, | |
'order' => 'ASC', | |
'orderby' => 'menu_order', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
NewerOlder