From 5fdde0e755cbc6cb69f8f3d7c44e7c76ba2a30c7 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 27 Jul 2017 14:45:56 -0400 Subject: [PATCH] adding check for the page slug to choose the event category event categories are added to the events shortcode in the sidebar based on the page slug --- index.php | 1 + parts/event-feed.php | 20 +++++++++++++++++++- parts/glm-blocks.php | 2 +- sections/entity-landing.php | 3 ++- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 0400b7c..7173c91 100644 --- a/index.php +++ b/index.php @@ -42,6 +42,7 @@ } else { // If not, and I am clearly not frontpage (checked above), I must be an entity landing page include __DIR__.'/sections/entity-landing.php'; + } } } diff --git a/parts/event-feed.php b/parts/event-feed.php index f5ada0e..a82de4e 100644 --- a/parts/event-feed.php +++ b/parts/event-feed.php @@ -1,7 +1,25 @@ + - + diff --git a/sections/entity-landing.php b/sections/entity-landing.php index 0c62fc0..3371843 100644 --- a/sections/entity-landing.php +++ b/sections/entity-landing.php @@ -13,7 +13,8 @@ echo ""; } get_template_part('parts/main-content'); - get_template_part('parts/glm-blocks'); +// echo bloginfo('template_directory').'/parts/glm-blocks.php'; + include __DIR__.'/../parts/glm-blocks.php'; echo ""; } ?> -- 2.17.1