2

Us this code instead: function redirect_location(){ global $wp; $current_url = home_url( $wp->request ); $UserDetails = unserialize(file_get_contents( 'http://www.geoplugin.net/php.gp?ip=' ) ); $userCountry = $UserDetails['geoplugin_countryCode']; if($userCountry == 'AR'){ $url = home_url('/ar/'); } else if($...


2

Its because the wrapper around that text block is set to display: flex;. You could override this by adding the following CSS... .special-list .right-text { display: block; } You can add this in Admin > Appearance > Customize > Additional CSS You might want to add this and then test other pages that use this code to make sure it doesn't break anything ...


1

The equivalent function for arbitrary images that aren't the post thumbnail is wp_get_attachment_image(). It works similarly, but you need to pass the attachment ID, and there's an $icon argument that doesn't really do much: echo wp_get_attachment_image( $attachment_id, 'large', false, [] );


1

You can create a template tag in your functions.php file like so: if ( ! function_exists( 'mytheme_reusable' ) ) : function mytheme_reusable() { //put your HTML or whatever code you need here } endif; You can then simply apply the template tag in any template exactly where you need it: <?php mytheme_reusable(); ?> ...


Only top voted, non community-wiki answers of a minimum length are eligible