From 6bf4ddbdc945b425a34d060f185a1d2f4b67018d Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 28 Apr 2021 17:50:03 +0300 Subject: [PATCH] Set the custom flag size to W:23px and H:15px --- includes/sp-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 68039349..2b91b7ca 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1726,7 +1726,7 @@ function sp_flags( $nationality ) { global $wpdb; $flag_post_id = intval( $wpdb->get_var( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value LIKE '%/$nationality'" ) ); if ( $flag_post_id ) { - $flag_src = wp_get_attachment_image_url( $flag_post_id, 'thumbnail', false ); + $flag_src = wp_get_attachment_image_url( $flag_post_id, array( 23,15), false ); $flag = '' . $nationality . ''; }else{ $flag = '' . $nationality . '';