terriz on "[Plugin: Instant Articles for WP] Add Custom Post Type meta field to Instant Articles"

ساخت وبلاگ

Hey Guys

We have a Custom Post Type on our site called "video" and we create video posts. The YouTube embed code goes into a custom meta field called "meta-box-video" and it is not displayed within the post body, it's displayed elsewhere on the page.
When the IA version of the page is rendered, no video appears because it's not in the post content.
Is there a way to add a meta field to the IA version of an article? So the IA version has the YouTube embed code followed by the post content?

Cheers

https://wordpress.org/plugins/fb-instant-articles/

I have this request also - for meta data from the post (for example, we have a custom post type that includes a subtitle field) as well as meta data for the author (for example, their title and website, which are also custom meta fields.)

I kinda thought that's what this plugin would do - but it appears it can only help format (markup) the text that is sent to Facebook?

Thanks,
Terri Z

terriz
Member
Posted 18 seconds ago #

Aha - the description indicates this is indeed an included feature of this plugin:

It's important to note that if you use meta fields to add extra text, images or videos to your Posts, Facebook will expect you to add these to your Instant Articles output too. This plugin includes hooks to help you do that.

So now I'm off to find these hooks...

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 208 تاريخ : پنجشنبه 30 ارديبهشت 1395 ساعت: 7:46