diff --git a/functions.php b/functions.php index d8563a7..943911d 100644 --- a/functions.php +++ b/functions.php @@ -16,7 +16,7 @@ function get_blog_slug() { function og_image( $tags ) { $blog_slug = get_blog_slug(); - $imagePath = __DIR__ . '/img/' . $blog_slug . '_fb_preview.jpg'; + $imagePath = __DIR__ . '/img/fb_preview_' . $blog_slug . '.jpg'; if (file_exists($imagePath)) { $imageUrl = esc_url('https://www.openfest.org/wp-content/themes/initfest/img/' . basename($imagePath)); diff --git a/img/2020_fb_preview.jpg b/img/fb_preview_2020.jpg similarity index 100% rename from img/2020_fb_preview.jpg rename to img/fb_preview_2020.jpg diff --git a/img/2021_fb_preview.jpg b/img/fb_preview_2021.jpg similarity index 100% rename from img/2021_fb_preview.jpg rename to img/fb_preview_2021.jpg diff --git a/img/2022_fb_preview.jpg b/img/fb_preview_2022.jpg similarity index 100% rename from img/2022_fb_preview.jpg rename to img/fb_preview_2022.jpg diff --git a/img/2023_fb_preview.jpg b/img/fb_preview_2023.jpg similarity index 100% rename from img/2023_fb_preview.jpg rename to img/fb_preview_2023.jpg