• Resolved kingstonrichard

    (@kingstonrichard)


    Hi Matt,

    As a feature request, I was wondering if you could give us the option of setting the date and time render formats as a customisable field?

    The site we’re using your plugin on has a specific Writing Guide that we need to follow. Short term, I’ve updated the plugin files for our needs but I’m conscious updates may overwrite our custom changes.

    Also, I think this would be a nice extra feature 🙂

    Cheers

    Rich

    https://wordpress.org/plugins/occasion/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kingstonrichard

    (@kingstonrichard)

    Additionally, would it be possible to have a setting to hide minutes on times if they are 00?

    Our time formats are 12:50pm or 1pm if the minutes are 00.

    Perhaps a checkbox on the settings page?

    Thanks

    Rich

    Plugin Author Matt Watson

    (@mwtsn)

    Hi Rich,

    The plugin is already allows you to do this. If you have a look at the FAQ all the details you need are in there.

    If you are wanting to change the format on a page, when you call the function to get the events you can pass in the parameter:

    'date_format' => 'F jS, Y'

    This formats the date according to standard PHP date formats (http://www.php.net/manual/en/function.date.php)

    If you are wanting to style the shortcode output, you can again pass this in.

    [occasion_shortcode_bootstrap_list date_format="F jS, Y" taxonomy_terms="event-type-slug"]
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Date formats on render’ is closed to new replies.