Monthly Archives: January 2017

jQuery Smooth Scroll to ID of n HTML element

You can use following code to scroll to ID of an element in HTML document You need to make sure the Jquery is previously included above following code // Add Smooth scrolling to all links jQuery(“a”).on(‘click’, function(event) { // Make … Continue reading

Posted in jQuery | Leave a comment

Taxonomy query in wordpress (Tax-Query)

You can use following taxonomy query in wordpress one of slug of categories is ‘students’  ‘post_type’=>’testimonials’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘testimonial’, // ‘custom-taxonomy-name’ ‘field’ => ‘slug’, // it is what it is: ‘slug’ ‘terms’ => ‘students’, // ‘custom-slug-name’ … Continue reading

Posted in Wordpress | Leave a comment