From 39bb69a83cc64096f97d8baa2f6db2d0143d46e2 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 16 Feb 2016 15:04:41 -0500 Subject: [PATCH] Donate page url grabbed from category name --- functions.php | 6 ++++++ header.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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;?>
  • -- 2.17.1