gistpress icon indicating copy to clipboard operation
gistpress copied to clipboard

Add instructions for GistPress on custom post meta fields

Open GaryJones opened this issue 9 years ago • 2 comments

Some folks store content in custom fields (post meta), so it would be handy for them to have instructions and a code snippet they can drop in so that GistPress (in fact, any oembed parsing) can run on their particular post meta key content.

See WP_Embed::__construct() for a starting point.

GaryJones avatar Jan 21 '15 21:01 GaryJones

So you're looking to process oEmbeds in an arbitrary blob of content without all the formatting provided by the the_content filter?

bradyvercher avatar Jan 23 '15 00:01 bradyvercher

Me personally, no, but someone asked for it :-)

Think of a CPT that has custom fields for splitting up different parts of the content - perhaps an introduction, the bulk of a code tutorial, and then a conclusion. At the moment, I don't think our shortcode or oEmbed URL would be recognised and parsed in a custom field. I realise that instructions we give are probably going to be to enable all oEmbed support for that field, rather than just GistPress, but if there's a way of also limiting it to just GistPress, even better.

I'm not saying this should be enabled by default (we don't know the post meta key anyway) - just have the instructions and example snaippet for how to enable it in the readme.

GaryJones avatar Jan 23 '15 10:01 GaryJones