From 3fde69a7cba5e9cee5db40b5eacb324fd72a8a5d Mon Sep 17 00:00:00 2001 From: Roy Date: Thu, 21 Jul 2016 15:33:36 -0400 Subject: [PATCH] Bug fixing --- ...ent-presspage-small-image-and-headline.php | 20 ++++++++++ content-single.php | 20 +++++----- functions.php | 40 +++++++++++++++---- header.php | 4 -- 4 files changed, 63 insertions(+), 21 deletions(-) diff --git a/content-presspage-small-image-and-headline.php b/content-presspage-small-image-and-headline.php index 855cecc..9a1cb39 100644 --- a/content-presspage-small-image-and-headline.php +++ b/content-presspage-small-image-and-headline.php @@ -22,6 +22,26 @@ } ?> + parent); + if($parent->slug == 'authors'){ + $authors[] = ''.$cat->name.''; + } + } + if(count($authors) > 0){ + $by = implode(', ', $authors); + } + else { + $by = sprintf( '%2$s', + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_html( get_the_author() ) + ); + } + ?> +

By

diff --git a/content-single.php b/content-single.php index dd77636..802e5ab 100644 --- a/content-single.php +++ b/content-single.php @@ -25,17 +25,19 @@
-
ID, 'shareline', true); - if(empty($shareline)) $shareline = get_the_title(); + $twittershareline = get_post_meta( $post->ID, 'twittershareline', true); + if(empty($twittershareline)) $twittershareline = get_the_title(); + $facebookshareline = get_post_meta( $post->ID, 'facebookshareline', true); + if(empty($facebookshareline)) $facebookshareline = get_the_title(); ?> - &url=&via=UConnBusiness', 'Twitter', 'width=500,height=500');"> +
- +
@@ -112,12 +114,10 @@
-ID, 'printthis', true); -if(strlen($printthis) > 0 || $printthis == 'false') echo '
+ + -
'; -?> +