Title: This Code not work ,Why ??
Last modified: August 21, 2016

---

# This Code not work ,Why ??

 *  [janfeng](https://wordpress.org/support/users/janfeng/)
 * (@janfeng)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/this-code-not-work-why/)
 * <?php if (is_shop() & empty($min_price)) {?>
 * T_T…. help me plz
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Thorsten Frommen](https://wordpress.org/support/users/ipm-frommen/)
 * (@ipm-frommen)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/this-code-not-work-why/#post-4777697)
 * This has nothing to do with WooCommerce.
    The code should read as follows:
 * `<?php if ( is_shop() && empty( $min_price ) ) { ?>`
 * Plese mind the double ampersand `&&`.
 * Kind regards,
    Thorsten
 *  Thread Starter [janfeng](https://wordpress.org/support/users/janfeng/)
 * (@janfeng)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/this-code-not-work-why/#post-4777702)
 * Thank you ipm-frommen , but i dont know why :
 * shop/?min_price=0&max_price=55 is display too . It should be not display .
 *  Thread Starter [janfeng](https://wordpress.org/support/users/janfeng/)
 * (@janfeng)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/this-code-not-work-why/#post-4777709)
 * oh ,is $_GET[‘max_price’] .

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘This Code not work ,Why ??’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [janfeng](https://wordpress.org/support/users/janfeng/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/this-code-not-work-why/#post-4777709)
 * Status: not resolved