WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#37193 closed enhancement (wontfix)

Add Schema Support to WordPress Gallery shortcode

Reported by: bhubbard Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords:
Focuses: Cc:

Description

It would be nice to see the WordPress gallery shortcode support schema.

https://schema.org/ImageGallery

Change History (7)

#1 @Compute
4 years ago

+1 - I was not aware of that schema.

#2 @jnylen0
4 years ago

Why? (What are the benefits of supporting this?)

How? (What changes would need to be made? Are there BC implications?)

Are there reasons not to do this? For example:

  • I suspect it would mean that the gallery shortcode has these extra features that aren't really supported in other shortcodes, which isn't great (something something xkcd something standards). It might be better to consider schema or programmatic support as part of a larger project (for example, editor blocks), but the benefits would have to be pretty clearly explained and ideally proven.
  • Would we be adding (more) duplicate ways of doing the same thing, which is potentially confusing?

I don't have answers to these, just trying to ask questions that can help move the ticket forward.

#3 @jnylen0
4 years ago

  • Keywords reporter-feedback added
  • Version changed from 4.6 to 3.5

Adding reporter-feedback to indicate that the ticket needs more info.

Also, the version field of a ticket should be set to the WP version where a feature or bug was first introduced. You can think of it as "version relevant since", and we should probably document this better. Going with 3.5 as the first version of the "modern" gallery shortcode ( ref).

#4 @JakePT
4 years ago

My reading of https://schema.org/ImageGallery is that it's used to mark up the page, not the gallery. Note that it doesn't have any useful properties for marking up individual images, or captions, or anything that a service could use for parsing the gallery in a meaningful way, and is a subtype of WebPage. I don't think marking up the output of the gallery shortcode with this item type would be the correct usage of it.

#5 @bhubbard
3 years ago

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

After reading the schema more closely, I believe you are right, it shouldn't be used.

#6 @bhubbard
3 years ago

  • Keywords reporter-feedback removed

#7 @netweb
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.