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
| // remove Google Maps JS/CSS from the homepage | |
| add_action( 'wp_print_scripts', 'maps_deregister_javascript', 100 ); | |
| function maps_deregister_javascript() { | |
| if ( is_front_page() ) { | |
| wp_deregister_script( 'wpgmp-google-api' ); | |
| wp_deregister_script( 'wpgmp-frontend' ); | |
| wp_deregister_script( 'wpgmp-google-map-main' ); |
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 | |
| $args = array( | |
| 'post_type' => 'product', | |
| 'stock' => 1, | |
| 'posts_per_page' => 4, | |
| 'meta_key' => 'total_sales', | |
| 'orderby' => 'meta_value_num', | |
| 'tax_query' => array( //do not return results from this category | |
| array( | |
| 'taxonomy' => 'product_cat', |
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 | |
| $args = array( | |
| 'post_type' => 'product', | |
| 'stock' => 1, | |
| 'posts_per_page' => 4, //how many products to show | |
| 'tax_query' => array( //query the product catagories | |
| array( | |
| 'taxonomy' => 'product_cat', | |
| 'field' => 'slug', |
NewerOlder