I used to use the published date to sort posts on my page. Now I am sorting the posts with a custom date/time field.
When using the published date I used the_date function, which only shows the date once if two posts are on the same day. For example:
March 14
Headline for Post 1
Headline for Post 2 (second post on the same day)
March 13
Headline for post 3 (only one post on this day)
March 12
Headline for post 4
Headline for post 5 (second post on same day)
However, when I use the custom date the date displays above each post. How can I make the custom date field not show when two posts have the same day? Thanks.
the_date()
source? It's rather short and simple to implement to skip same days.