Forums Forums Search & Filter Pro Displaying datepicker field

Viewing 10 posts - 1 through 10 (of 20 total)
  • Anonymous
    #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?

    Trevor
    #46282

    It is the search results that are showing this wrong? If so, what Display Results method are you using?

    Anonymous
    #46439

    Yes 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 Output

    Also, 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.

    http://vonovo.ca/dev-clients/lol/be-informed/resources

    Anonymous
    #46445

    wasn’t able to update the staging site tonight so I will do it first thing in the AM. Best to delay your reply until then so you can see it first hand.

    Trevor
    #46460

    OK, I will wait for you.

    Anonymous
    #46492

    Hi Trevor,

    The site is live now. Go ahead and use the link.

    Trevor
    #46497

    The Custom Display method is a developer only choice where you would need to do some coding.

    Did you make the template file to be used and did you add code for the ACF field?

    If so, what code did you use?

    Anonymous
    #46544

    Yes 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>’;

    Trevor
    #46547

    Ah, if that is what you have, then we can fix it easily.

    What format would you like THAT display of the date to be in? Any choice you want.

    Anonymous
    #46602

    Like this: January 12, 2010

Viewing 10 posts - 1 through 10 (of 20 total)