Make WordPress Core

Opened 6 months ago

Closed 5 months ago

#46927 closed enhancement (invalid)

Embedding GitHub gist with multiple files

Reported by: bmahr Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Embeds Keywords:
Focuses: Cc:
PR Number:


I would like to embed GitHub gist with multiple files in two ways.
Either all at once
Or each file seperately

Change History (3)

#1 @desrosj
6 months ago

  • Keywords reporter-feedback close added

Hey @bmahr,

Thanks for this ticket, and welcome to Trac!

I do not believe that GitHub is officially an oEmbed provider, which is what WordPress embeds currently work as. Afe you able to find any information that says differently?

GitHub does provide a dropdown at the top of each Gist to copy embed code to accomplish this without any changes to WordPress. There are also several plugins that will accomplish this.

I am going to mark this as a candidate to close, pending further feedback.

#2 @bmahr
6 months ago

Im using it quite frequently for single files. See https://thoughts-on-cpp.com
Here's also a linkt refering to gist support:

i dont know about oEmbed. But it would be really convenient to refer to a file with #filename at end of url.
GitHub is at least supporting this.

#3 @desrosj
5 months ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Ah! The site that you have linked appears to be hosted on WordPress.com. The [gist] shortcode and embed is only supported there, not in the WordPress.org version of the WordPress software that this Trac instance works to maintain.

Please open a support request with WordPress.com support if you are still experiencing issues.

Note: See TracTickets for help on using tickets.