diff --git a/functions.php b/functions.php index d2abd54..1307972 100644 --- a/functions.php +++ b/functions.php @@ -9,6 +9,8 @@ add_filter( 'the_excerpt', 'do_shortcode'); // OpenGraph image for FB/Twitter function og_image( $tags ) { + global $blog_slug; + $imagePath = __DIR__ . '/img/' . $blog_slug . '_fb_preview.jpg'; if (file_exists($imagePath)) {