From: Laury GvR Date: Tue, 16 Feb 2016 20:04:41 +0000 (-0500) Subject: Donate page url grabbed from category name X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=39bb69a83cc64096f97d8baa2f6db2d0143d46e2;p=WP-Themes%2Fshipwreckmuseum.git Donate page url grabbed from category name --- diff --git a/functions.php b/functions.php index 21fad21..52fcd4f 100644 --- a/functions.php +++ b/functions.php @@ -302,6 +302,12 @@ function glm_get_background() { return $imageUrl; } +function get_product_category_by_id($cat_id) +{ + $category = get_term_by('id', $cat_id, 'product_cat', 'OBJECT'); + return $category; +} + // // The code below is useful when you want the image to resize to // if (has_post_thumbnail()) { // $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); diff --git a/header.php b/header.php index 242e025..be88721 100644 --- a/header.php +++ b/header.php @@ -29,9 +29,9 @@
  • Memberships
  • - + -
  • Donate
  • +
  • name;?>