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
| JSON IS NOTHING BUT AN ARRAY OF OBJECTS. | |
| OBJECT: | |
| var myCar = { | |
| "name": "Audi", | |
| "model": "AU-300", | |
| "color": "Red" | |
| } | |
| var myColor = { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>json and ajax</title> | |
| <style type="text/css"> | |
| .hide-me{ | |
| display: none; | |
| } | |
| </style> | |
| </head> |
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 $loop = new WP_Query(array('post_type' => 'portfolio', 'posts_per_page' => get_option('to_count_portfolio'), 'paged' => get_query_var('paged') ? get_query_var('paged') : 1 ) | |
| ); ?> | |
| <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> | |
| <span class="title"><?php the_title(); ?></span></br> | |
| <?php endwhile; ?> | |
| <?php | |
| $big = 999999999; // need an unlikely integer | |
| echo paginate_links( array( |
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 | |
| /* | |
| Template Name: Car Search | |
| */ | |
| error_reporting(0); | |
| get_header('inner'); | |
| if($_POST['btn_submit']) { | |
| $service = $_POST['select1']; | |
| $zipcode = $_POST['select3']; |
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 | |
| /***After Successful login redirects**/ | |
| //function redirect_user_on_role() | |
| //{ | |
| // global $current_user; | |
| // get_currentuserinfo(); | |
| // | |
| // //If login user role is Subscriber | |
| // if ($current_user->user_level == 0) | |
| // { |
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
| (function($){ | |
| "use strict"; | |
| /** |
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 // get the custom post type's taxonomy terms | |
| $custom_taxterms = wp_get_object_terms( $post->ID, 'your_taxonomy', array('fields' => 'ids') ); | |
| // arguments | |
| $args = array( | |
| 'post_type' => 'your_post_type', | |
| 'post_status' => 'publish', | |
| 'posts_per_page' => 3, // you may edit this number | |
| 'orderby' => 'rand', | |
| 'tax_query' => array( |
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 | |
| /* | |
| *Template Name: Ajax | |
| */ | |
| ?> | |
| <html> | |
| <head> | |
| <!--http://www.itgeared.com/ --> | |
| <!-- //loader image referance : http://www.ajaxload.info/ --> |
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 if (is_single()){ ?> | |
| <style> | |
| /*woocommerce customization*/ | |
| .product_meta { | |
| float: left; | |
| clear: both; | |
| line-height: 50px; | |
| } | |
| button.single_add_to_cart_button.button.alt { | |
| width: 35%; |