From: Laury GvR Date: Thu, 15 Dec 2016 18:34:42 +0000 (-0500) Subject: Catching the error if the WooCommerce donate category is not found X-Git-Tag: v1.2.33^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=09ffa682a0ceb1eff4e367f06ebee73f10ccb5b0;p=WP-Themes%2Fgilmoremuseum.git Catching the error if the WooCommerce donate category is not found --- diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index b03d1e0..96fab9a 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -3,9 +3,11 @@ echo '

Make A Donation

'; glm_blocks_show(); echo '
'; - echo '
- -
'; + echo '
'; + if (get_term_link( 236 ,'product_cat')) { + echo ''; + } + echo '
'; echo ''; }