Here you were trying to use echo as a method of DateTime object.
$month = $date->echo date_i18n('F');
It should be:
$month = date_i18n('F', strtotime( $acf_date ) );
Where $acf_date is the time string not the DateTime object.
Related Posts:
- Can an array be used as a meta_query value?
- Looking for most performant way to execute several similar WP queries within shortcodes
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Form search query – displaying ACF “Post Object” field as results
- Remove Post if Advanced Custom Field is checked to fix paging
- Nested Queries of decreasing specificity
- Use WPQuery to match to specific repeater row in post
- Query on a repeater date (acf)
- List all ACF field values across every post on one page
- Display Year and Month from custom field + Age Calculator
- Date not working correctly
- Add up all numbers from a WordPress query [closed]
- WP_Query | Help me create a search term with an ‘OR’ relation?
- The values of custom fields are not available functions.php
- Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?
- WP_Query use for a filter with multiple Taxonomies and Terms
- Display related products with custom output
- How do I dynamically generate args for wp_query?
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Custom page archive query by url var calling page twice on one of my custom queries?
- How to query for posts with a null or blank post_name?
- WordPress pagination not working with search page
- Using Advanced Custom Fields to create a per page slider
- WP Query with custom Shortcode
- Add more button if more 8 items
- Displaying custom field according to date
- Advanced Custom Fields not displaying
- Exclude posts with specific metadata from search?
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- How to show meta value code HTML after x paragraph
- How do I check or test a WordPress Auto Year Change Script?
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- Conditional multidimensional arrays and array_map
- How can I count ACF sub_field with a certain value
- change the default order of posts only for specific categories
- extract serialized array to use for wp-query
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How to get post category list as select in front-end?
- Advanced Custom Fields [closed]
- Order a WP_Query by meta value where the value is an array
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- Using multiple variables to assign categories to an array
- Search.php gets metadata from first post
- Let current user know pending posts counts using wp_query
- Foreach loop is unexpectedly outputting an extra empty a tag
- get_terms with specific id order
- How to store checkbox data for individual users?
- “pre_get_posts” orderby custom date field in different format?
- How to detect and handle the time difference between server and user in WordPress?
- wp_query – Exclude the first thumbnail from lazy loading on archives
- How to call my PHP function with AJAX ? wp_query
- Usermeta data unserialize, extract and display in table in WordPress
- No more get_option(‘date_time’) in WordPress 5.5?
- If Statement is Ignored?
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- ACF values to Script with auto refresh
- Trying to get pagination working on WP_Query() post grid
- Advanced Custom Forms PHP formatting for do_shortcode
- Possible to edit custom date field and display?
- ACF Gallery field images donwload
- Check the database for a postmeta field
- ACF under category name in shop page [closed]
- How to pull date/time in french format for wordpress post?
- Can’t add to time? [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- ACF background-color per post in a WordPress loop
- Combine multiple queries, array_unique returns nothing
- wordpress query returning unexpected results
- Custom Post type Ajax search results
- PHP for loop not working as intended
- How to return count of items found in SQL query
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- wp_query beginner
- Else if Statement for Advanced Custom Fields [closed]
- WooCommerce – Print Processing orders [closed]
- Weird Behaviour: Not all WordPress Posts appearing
- List of child pages fetch next results at link click
- allow previews outside wordpress folder (Outsourcing WP previews)
- How to get category pages to look like a certain archive page?
- get_category only returning details for ‘uncategorized’
- Post Title Not showing up
- Advanced Taxonomy query, with 3 post types
- reorder a WP_Query, using a dropdown
- Custom query_posts() parameter
- Why does a meta_query break this WP_Query?
- How to modify this function to exclude also the post belonging to a specific category?
- Order woo products, but first products must be with acf fields
- Display biography post for today’s birthday person
- Execute multiple PHP Snippets causes error?
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- How to sort search result by post_title, then by post_content
- ACF number less than comparison not working
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- Advanced Custom Fields – How do I get field values of a group within a group field type
- Show post in elementor based on views and specific category with query id feature in elementor
- Advanced Custom Fields Auto Populating Field Values For Nested Repeater FIelds
- create custom post type and populate custom fields using php
- External WP_Query call from PHP crashed after version update
- WordPress per ACF – permalink is not working