Forums › Forums › Search & Filter Pro › Displaying datepicker field
- This topic has 19 replies, 2 voices, and was last updated 8 years, 5 months ago by Trevor.
-
Anonymous(Private) May 21, 2016 at 2:39 am #46225
I have a custom post type with an ACF custom date field using a datepicker. I have configured the date field to accept a date format of MM dd, yy (ex: “January 12, 2010”) and it is showing in the custom post type edit screen properly when a user inputs the date. However, it is displaying on the search results as 20101201.
How do I display the date in the search results as “January 12, 2010” instead of 20101201?
Anonymous(Private) May 24, 2016 at 3:27 am #46439Yes the search results are not displaying the date properly. I am using the Custom display method. I have uploaded the following screenshots to my site so you can see some configurations.
ACF Configuration
S&F Configuration
Results OutputAlso, I have put the site up on a staging server so you can see it in action. This is the landing page for the listings. The results page is displayed when the user selects an input or clicks Submit.
Anonymous(Private) May 24, 2016 at 7:28 pm #46544Yes there is a template file and yes I added code for the ACF field. All the other ACF fields are working normally and pulling in the proper data, just not the date field.
This is the code for the date field (php tags are also in there):
echo ‘<p class=”lol-resource-date”>’ . get_field(‘resource_date’) . ‘</p>’;
-
AuthorPosts