From: Laury GvR Date: Wed, 1 Nov 2017 19:17:15 +0000 (-0400) Subject: Blog sections fixed & use cats instead of tags for entity X-Git-Tag: v1.0.10^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=08fd50394836381b2ea27393d79f7a7c2cd59759;p=WP-Themes%2Fbaragacounty.git Blog sections fixed & use cats instead of tags for entity Blog sections were separated into their respective entities using tags, so that categories could still be used, and because we never use tags anyway. This is now changed so that categories are used to separate posts into their sections. Blog sections now also use advanced excerpts, instead of displaying the full posts. --- diff --git a/index.php b/index.php index 5e67f72..6bc20a6 100644 --- a/index.php +++ b/index.php @@ -14,13 +14,13 @@ $GLOBALS['entity_page_slug'] = get_entity_template(); $interior = "interior"; } else { - if (has_tag('government', $post)) { + if (has_category('government', $post)) { $GLOBALS['entity_page_slug'] = 'government'; - } else if (has_tag('chamber-of-commerce', $post)) { + } else if (has_category('chamber-of-commerce', $post)) { $GLOBALS['entity_page_slug'] = 'chamber-of-commerce'; - } else if (has_tag('edc', $post)) { + } else if (has_category('edc', $post)) { $GLOBALS['entity_page_slug'] = 'edc'; - } else if (has_tag('convention-visitors-bureau', $post)) { + } else if (has_category('convention-visitors-bureau', $post)) { $GLOBALS['entity_page_slug'] = 'convention-visitors-bureau'; } else { $GLOBALS['entity_page_slug'] = 'default'; diff --git a/parts/blog-content-area.php b/parts/blog-content-area.php index a0d1d4b..4bb7ff7 100644 --- a/parts/blog-content-area.php +++ b/parts/blog-content-area.php @@ -1,6 +1,6 @@
- - have_posts()) : while($tag_query->have_posts()): $tag_query->the_post();?> + + have_posts()) : while($cat_query->have_posts()): $cat_query->the_post();?>
ID, 'blog-feed-front'); ?> diff --git a/parts/blog-sidebar-r.php b/parts/blog-sidebar-r.php index f84e105..03a10e5 100644 --- a/parts/blog-sidebar-r.php +++ b/parts/blog-sidebar-r.php @@ -8,7 +8,7 @@

Recent Posts

Archive

diff --git a/parts/blog-text.php b/parts/blog-text.php index 27bfe00..a05fd81 100644 --- a/parts/blog-text.php +++ b/parts/blog-text.php @@ -9,6 +9,5 @@ Posted on - - + \ No newline at end of file