From 3424c7a12cbe9f2f87832ff90229bb3094744c1d Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Fri, 5 Feb 2021 20:05:55 +0100 Subject: Return output of shortcode. The result of shortcodes should return any output they want on the page, not call echo. There's still a few calls to echo in the giglog_photographers code, but we'll deal with them later. --- includes/public/shortcodes/giglog_photographers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/public/shortcodes/giglog_photographers.php b/includes/public/shortcodes/giglog_photographers.php index 4886a8c..cedfd13 100644 --- a/includes/public/shortcodes/giglog_photographers.php +++ b/includes/public/shortcodes/giglog_photographers.php @@ -362,6 +362,8 @@ function giglogadmin_getconcertsphotog ( ) { function giglogadmin_photographers() { - echo(giglogadmin_getfiltersphotog()); - echo (giglogadmin_getconcertsphotog() ); + $output = giglogadmin_getfiltersphotog(); + $output .= giglogadmin_getconcertsphotog(); + + return $output; } -- cgit v1.2.3