WordPress.org

Making WordPress.org

#3437 closed defect (worksforme)

Incorrect parameters in [time] shortcode in Make posts show wrong dates

Reported by: joyously Owned by:
Milestone: Priority: low
Component: Make (Get Involved) / P2 Keywords:
Cc:

Description

Several of the posts on Make blogs use the [time] shortcode incorrectly, so the dates that are shown are not useful.
The ones I saw that prompted this ticket are all visible on https://make.wordpress.org/core/tag/new-contributors/
although I'm sure there are others in other Make blogs, perhaps on their meeting summary posts.

Change History (5)

#1 @obenland
21 months ago

Are there any specific examples to check against by any chance? How are they used incorrectly?

#2 @joyously
21 months ago

Well, each post has a link for Next Meeting.
The post from Sept 1, 2017 says next meeting is Sept 12, 2018. I doubt that is correct.
The post from Aug 17, 2017 says next meeting is Aug 1, 2018. That can't be right either.

My assumption is that the relative parameter is what is wrong, but it could be a bug in the shortcode.

Last edited 21 months ago by joyously (previous) (diff)

#3 @dd32
21 months ago

The time shortcode is [time relative]Wednesday, September 6, 19:00 UTC[/time] which does indeed mean it'll be relative to todays date, rather than the posts.

I've updated it on https://make.wordpress.org/core/2017/09/01/new-contributors-meeting-recap-august-30th/ to not include the relative param, which seems to have fixed it for that post - I can't go through all of the posts though

This ticket was mentioned in Slack in #meta by sergey. View the logs.


18 months ago

#5 @obenland
17 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Let's educate authors rather than having us chase down every single instance of misused shortcodes.

Note: See TracTickets for help on using tickets.