01/28/2019 at 4:48 pm
#482920
Keymaster
@ Jamii
Sorry, I had the page open already so I did not see your follow up up reply.
In this case, I recommend hooking in the to cn_output_date filter. It passes four attributes.
$html:: This is the html of the date row. Return the HTML as you need with the altered date format. Refer to the../wp-content/plugins/connections/templates/entry/dates/dates-hcard.phpfile for the HTML markup.$date:: This is a cnEntry_Date object. Calling$date->getDate()returns a DateTime object. Calling$date->getType()will return the date type.$entry:: This is the current entry.$atts:: The current shortcode options.
With a filter applied to cn_output_date you’ll be able to check for the date type and alter the format as needed.
Hope this helps!
