WordPress: How to display custom taxonomy terms in select field in options panel of redux framework?

Its very easy to show custom taxonomies as select options list in the options panel of redux framework. I used following paremeter to get list of custom taxonomies: ‘fields’ => array( array( ‘id’ => ‘slider_type’, ‘type’ => ‘select’, ‘title’ => __( ‘Select Slider for Homepage’, ‘redux-framework-demo’ ), ‘subtitle’ => __( ” ), ‘desc’ => __( […]

WordPress: how to add custom classes in wp_nav_menu using custom walker calass?

Sometimes we need to add custom classes in the the navigation menus created by wordpress’ function ‘wp_nav_menu’. For example we want to add custom classes for dropdown menus, in such spcific cases we there is no option to add custom class for dorpdown menu. So in that case we can use walker abstract class. We […]

WordPress: How to auto include header and footer for every template in wordpress?

Put following code in functions.php to enable auto header, footer include in every custom template you will create. add_filter( ‘template_include’, function( $template ) { get_header(); include $template; get_footer(); return FALSE; });  

jQuery Baisc Standard Form Validation Script

<div id=”status” class=”alert alert-danger” style=”display:none”></div> <div class=”alert alert-success” style=”display:none”></div> <script> function validation() { var firstName = $(‘#firstName’).val(); var lastName = $(‘#lastName’).val(); var phone = $(‘#phone’).val(); var email = $(‘#email’).val(); var message = $(‘#message’).val(); $(“.alert-danger”).slideUp(); if((firstName == ”) || (lastName == ”) || (phone == ”) || (email == ”) || (message == ”) ) { […]

PHP: How to Transfer File from Server to Server Online using PHP?

// you can increase following limits according to size of remote file. ini_set(‘max_execution_time’, ‘30000’); ini_set(‘memory_limit’, ‘30000’); /* Source File URL */ $remote_file_url = ‘http://www.Your_remote_url.com/Your_File.zip’; /* New file name and path for this file */ $local_file = ‘Your_File.zip’; /* Copy the file from source url to server */ $copy = copy( $remote_file_url, $local_file ); /* Add […]

MySQL: How to get latest updated Tables’ list

Following query will show a list of the all latest tables which are changed/updated ( by inserting/deleting/updating rows ) recently. USE information_schema; SELECT TABLE_SCHEMA , TABLE_NAME FROM TABLES WHERE UPDATE_TIME IS NOT NULL AND UPDATE_TIME > NOW() – INTERVAL 1 DAY AND TABLE_SCHEMA = ‘Your_Database_Name’