get_bloginfo returns strings so this works fine:
<?php
$language = get_bloginfo( 'language' );
if(language == 'en-US')
the_time('jS F Y');
else
the_time('d/m/Y');
?>
Related Posts:
- wp_enqueue_script adding conditional statement not working
- Check if first paragraph is an image, then show custom code right after it?
- If post author role is X
- Can a conditional statement apply to part of a slug?
- Add default content to posts in a specific category?
- is_front_page, is_page(‘slug’), is_page(id) not working
- Need help on creating If-statement for custom meta fields
- How to make gravatar.com avatars conditional?
- Loading Scripts on Specific Pages
- Condition function for is parent category?
- Conditional Statement – Best Way to Remove Nav on Contact Page
- wordpress is_page() problem
- Location-Based Content
- Personalized message for each unique password-protected page
- Conditional Shortcode image display
- Change Woocommerce order button page on particular page
- Change a url / link if a user is logged in?
- to create own conditional tags for business directory in wp
- Change “en-US” to “en”
- How to use “Cases” instead of “IFs” for conditional logic
- Which is the better way to write a conditional statement? [closed]
- Nested conditionals
- Is there a way to password-protect part of a post?
- if/Else have_posts Else fails to echo message to page
- Conditonal statement for iPad
- Return function only on certain pages
- How to write this conditional statement?
- Conditional for Custom Post Types
- Date-Based Conditional Tag
- Message box when accessed from iPad
- Show this code if user has previously left a comment
- Insert a conditional in the middle of a function to give it 2 different outcomes
- How can I use ‘edit_form_after_title’ conditionally?
- Force Log in to view a page
- Conditional loading of CSS for my plugin
- Looks like this if condition is not working [closed]
- is_front_page breaks with url parameters generated by a plugin
- Generating images from an array of categories
- WP conditional site logo and header block
- How to know if the most recent article
- Widget logic conditional widget
- How to display image on condition that a selection has been made
- How to Conditionally Not Display a Link Based on Current URL?
- Allow users to only CREATE one single (custom) post
- If statement to check for post_content
- why is my custom loop failing?
- Conditional sidebar menu
- What is the best way to disable my WP website if the user has adblocker on? [closed]
- How to tie two conditions to one statement
- Create a page from different content blocks
- Content Restriction but allow public REST API
- How do test if a post is a custom post type?
- Enqueue Scripts / Styles when shortcode is present
- wp enqueue style on specific page templates
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Best practices for localizing WordPress content?
- Loading scripts only if a particular shortcode or widget is present
- get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
- Best WordPress Multi-language Plugin? [closed]
- Why isn’t is_page working when I put it in the functions.php file?
- What is difference between get_bloginfo(‘url’) and get_site_url()?
- From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
- Setting WPLANG from a plugin
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- Rewrite Rule for Multilingual Website, Like qTranslate?
- Best WordPress Localization Plugin? [closed]
- How to get a translated string from a language other than the current one?
- What are options are there to implement a multi language site
- qTranslate get content by language [closed]
- How to set back-end language per user?
- Change admin language based on user (in single-site)
- How to keep plugin translations after updates?
- Localization: I want the backend: english and frontend in defined language
- Creating custom permalink structure for languages
- how to create a conditional content_width for a wordpress theme?
- Multilingual WordPress plugins [closed]
- How to debug failed load_theme_textdomain()?
- How do I change the login logo URL and hover title?
- How do I change the language of only the login page?
- Different back-end language for different users?
- Show the most popular post per week
- Post and Page Inheritance to subsites in a WordPress Network
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- why is translation not working on theme?
- How can I determine if a post has an image attachment?
- How to determine current active language in qtranslate plugin? [closed]
- Display navigation menu item conditionally based on user capabilities
- How to manually link posts to each other in WordPress
- Changing the language of a single page
- What is the best page ordering plugin that works well with WPML? [closed]
- How do I place content on archive pages but not on main page?
- WPML: getting page title in different language
- If Post Type equals, then display X content
- bloginfo() vs get_option?
- Difference between bloginfo(‘home’) and home_url() and site_url()
- Titles in my sidebar widget appear in all languages – with qtranslate
- Is there a blog info object?
- Display several random posts, but make sure a condition is met
- Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]