You can use the global $wp_locale
to get the month translated in each language. You just need to get the month number (01 to 12) from the Acf field.
You have the functions in the WP_Locale
class get_month()
and get_month_abbrev()
global $wp_locale;
$month = $wp_locale->get_month(04); // Output april in english
$month_abbrev = $wp_locale->get_month_abbrev($month); // Output Apr in english
Related Posts:
- ACF Content with WPML not saving [closed]
- Open Source replacement for WPML? [closed]
- wordpress REST-API upload image to ACF
- How to add a custom field to quick edit
- Gutenberg First Block on Page Conditional?
- Comparing arrays with meta_query in pre_get_posts
- How to order by just the Time Field in Advanced Custom Fields
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- How to count ACF Flexible Content Rows?
- Query between dates using date picker filter breaks in WordPress 4.2.1
- Get ACF value after update user using save_post
- random p tag in advanced custom fields?
- Theme localization in WPML – .mo file error [closed]
- How can I track and output when a field is updated? (currently using Advanced Custom Fields)
- How to write PHP array to render JSON-LD Markup for Job Postings, with ACF
- Add up values from ACF number field
- Advanced Custom Fields: Conditional Statement with Select
- Add PDF to ACF image field from file url
- How to save post with different languages and linked them with WPML?
- Bulk-Update Custom Posts
- Group ACF repeater fields from differrent posts
- How to get custom fields in a post when published
- Get all custom fields with wp’s get_posts()
- How to populate a parent page with its child subpages and associated templates
- Find the first occurrence of a custom field
- ACF Add fields values to newly inserted post [closed]
- Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc
- ACF Relationship – Limit to specific pages
- Website goes down while importing backup (Internal server 500)
- Display total unique custon field results
- Advanced custom fields – pulling data in from another page
- English version of my site show french strings [closed]
- ACF: If field contain a specific value, update value in another field programatically
- how to load random related posts with specific custom fields?
- Displaying user data within ACF relational field (user type)
- ACF Image field not displaying in WordPress with Visual Composer [closed]
- Query and display only by first letter of the get_field value
- How to acquire an ACF image using get_previous_post and get_next_post
- ACF checkbox array is returning numbers, not labels [closed]
- Building large multi-section pages with Advanced Custom Fields
- Translate arguments of a user added custom code [closed]
- WPML language tags (Qtranslate feature) [closed]
- Showing a post depending on the Custom Field value
- Borrowing of Previously Translated Strings by Child Plugin
- Advanced Custom Fields – category image
- WP-e-commerce (getshopped) Hebrew language files – where can I get them? [closed]
- Widget Code / Advanced Custom Fields / Elementor
- How to automatically translate plugin using translate.wordpress.org
- How can I apply an ACF field to a single custom post if it refers to the taxomy of that post type in the rules?
- ACF: Update field value based on value of another field
- Getting “Years Only ” from ACF Date Picker field to Hidden filed in the fields group
- How to show related post having same relationship filed under single CPT?
- Prevent other hooks from firing after wp_update_post() outside of editor
- Where to place CSS if add a new layout to FLexible Content Template
- Trying to update repeater field (ACF) dynamically with data from Contact Forms 7
- Get title color from category custom field
- WP Cron Working, but Function Not Working
- How to get a product’s Custom Fields in a different template file?
- Explore custom posts (CPT UI & ACF) database from WP UI
- pre_get_posts hook not targeting search results page query
- ACF – get custom taxonomy term image field
- ACF group field disappeared after deployment using deployer script
- get the title of a relationship field
- Translate string inside twig template
- ACF Dynamic select not showing data
- Modification of RSS feed is not consistent
- How to call ACF field in functions?
- Multiple orderby date arguments
- How to use WP Backery on Wysiwyg ACF
- Looking for a javascript callback action to re-initiate a custom slideshow in gutenberg
- Help using an array in ‘exclude’ key of another array
- Create Shortcode for php code in functions.php
- ACF: Updating gallery field doesn’t work in backend
- Pulling author name via $_GET parameter
- Front page showing ACF only once, is that solvable to show the ACF per post? [closed]
- Srcset incorrect with Owl Carousel and ACF?
- Rearranging Content After Blog Post
- Advanced Custom Fields – Google Map Won’t Render Unless Variable Dumped
- Add column and acf field content for cpt
- Call the cropped image of a custom field in the theme
- WPML admin texts with serialized objects
- Relationship field problem: Uninitialized string offset: 0 in
- ACF iterating past the while-loop, defining a max number to loop
- Displaying page list and a custom field
- Gettext for custom field checkbox values
- How to add admin functionality to allow ability to choose different field group to display on webpage using Advanced Custom Fields?
- Separate [Advanced Custom Field] values by commas
- Multiple loop issue – pull one featured and then continue the loop
- Advanced custom fields – If/ while field problem
- Check if meta_key exists in wp_list_pages
- Using ACF custom field for custom post type to order categories
- PHP calls to custom fields not being made. Query seems to be blocking them
- WPML – how to translate user profile fields with icl_t()? [closed]
- How to translate the blog date in the Avada theme [closed]
- Custom headings on WYSIWYGs per flexible content module in ACF
- Same ACF Relationship field for multiple Post Options sub-pages?
- Pending posts showing category until published