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
- How do I use WP_query with multiple post IDs?
- Inject post (from specific category) between posts in Loop
- is_page() not working from within a plugin
- PHP function showing wrong time in WordPress
- How to get year, month and hour in WordPress?
- Passing JSON data from WP Query into AJAX causing NULL errors
- Display certain amount of posts on taxonomy archive page
- Conditional statement for parent, child and grandchild pages
- How to add 2 posts under another post? Formatting should be intact
- what is diference wp_get_attachment_url / wp_get_attachment_src / get_post_thumbnail_id?
- Modern Tribe Calendar wp-query with meta query not working at all
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Count number of published posts by type
- How to display custom field on homepage
- Can’t increase posts_per_page by variable
- Get taxonomy terms only of the WP_Query current posts
- ACF check if variable has http, if else return string
- Use WP_Query in shortcode
- Why is variable not working on custom sql query using wpdb?
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- Displaying the Month and Year that a page was Created?
- get current custom post ID by WP_Query method
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- If Query In Sidebar
- ACF: how do I get the fields and its values of a specific group?
- Dynamic content based on a URL parameter
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Remove the first 5 characters of the_title and orderby that
- How to get all author posts outside of author templates
- How to get post ID in a Page?
- How to overwrite orderby with add_query_var
- How to get User Time Zone in WordPress?
- ACF put a comma after the last repeater field value [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- How to override url params with rewrite rules vars?
- How to display SQL query that ran in WC_Order_Query?
- Store metakey value as an array
- Post not populating for custom post type based on category selection
- Shortcode function doesnt work without caption
- Infinite Loop – WP_Query
- echo var into wp_query
- Including Custom fields within the_content
- Toolbar Hidden in a Virtual Page
- WordPress SQL JOIN query
- Get date function not working
- WP_Query and help with the loop for magazine front page
- Update user repeater meta (ACF) with another user meta field value
- How to WP_Query posts order by parent title?
- search.php to search only the post title
- WP_Query – How to query all of post types categories
- How to work Woocommerce pagination inside shortcode?
- If Post Published Date or Modified Date is 1 Year or Older, Display Notice on Post Page
- get different meta-data of a complicated query at the same time
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Using a new WP_Query inside the loop
- wp_Query with mutuplea values returns all posts
- How to get specific multiple pages excerpts at homepage?
- ACF Taxonomy field values not select in backend
- WP_QUERY post_in problem
- how to get data from two different table from wordpress database
- Assign meta_query value to php variable
- Advance custom fields variable with if statement & Function
- Place product field value as variable in php
- ACF – Get ID of relationship field in flexible content
- WordPress search query, how to modify the sql
- Modify post image in full size
- Wp-query output correct, but the loop shows one less item (only sometimes)
- Get list of posts from attachment
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Making list of posts with chosen description
- Position a repeated article blocks
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- Adding a number to a date
- direct query to post_meta table
- ACF Images If/else
- Page returning ID from array, how to return the correct values for post in acf wordpress
- List sibling pages widget, exclude current page
- the_post_thumbnail unless video id is added
- Does wp_query and query_posts affect website performance? [duplicate]
- WordPress post pagination on custom template not working
- Add comma between variables [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- How do I convert a custom field to a php date format? [closed]
- Show button in header when product custom field is not empty
- Convert custom field date format to “WordPress default”
- Add adjacent post function inside custom recent post function
- How do I exclude the current post from the upcoming post query