bbgdesigner
Forum Replies Created
-
Forum: Plugins
In reply to: [Instant Articles for WP] add meta info for custom post typeTry with this example..
use Facebook\InstantArticles\Elements\Footer;
use Facebook\InstantArticles\Elements\Paragraph;
use Facebook\InstantArticles\Elements\Bold;
use Facebook\InstantArticles\Elements\Italic;
use Facebook\InstantArticles\Elements\Anchor;
use Facebook\InstantArticles\Elements\Ad;
add_action( ‘instant_articles_after_transform_post’, ‘place_p’);
function place_p($ia_post) {
$ia = $ia_post->instant_article;
$ia->withFooter(
Footer::create()
->withCredits(‘Some plaintext credits.’)
);
$ia->addChild(
Paragraph::create()
->appendText(‘@copyright’)
);
}and other rule…in this link… hope enjoy it.
https://developers.facebook.com/docs/instant-articles/sdk/elements?__mref=message_bubble
Forum: Plugins
In reply to: [Instant Articles for WP] Automatic placement of multiple adsHello Vahn,
Can you detail about this issue… concretely I same problem…
I want in put my direct ads to instant article…
but it now showing up….
please help….
Regarded….
Forum: Plugins
In reply to: [Instant Articles for WP] class op-slideshow not loadjust my code…
<div class=”gallery”><figure><img></figure><figure><img></figure><figure><img></figure><figure><img></figure><figure><img></figure><figure><img></figure><figcation>…</figcation></div>
it will work with…
{ “class”: “SlideshowImageRule”,
“selector” : “div.gallery”,
“properties” : {
“image.url” : {
“type” : “string”,
“selector” : “//div[figure[img]]”,
“attribute”: “src”
}
}Forum: Plugins
In reply to: [Instant Articles for WP] Transformer rule: gallery//div[figure]
Forum: Plugins
In reply to: [Instant Articles for WP] class op-slideshow not loadI have fix it… with this tyle…
“class”: “SlideshowImageRule”,
“selector” : “div.gallery”,
“properties” : {
“image.url” : {
“type” : “string”,
“selector” : “//div[figure[img]]”,
“attribute”: “src”
}Forum: Plugins
In reply to: [Instant Articles for WP] Youtube Embed doesn't workCustom transformer rules:
add code:
“class”: “SocialEmbedRule”,
“selector” : “iframe”,
“properties” : {
“socialembed.url” : {
“type” : “string”,
“selector” : “iframe”,
“attribute”: “src”
}Hello Paulo I try use this one but not work for me….
{
“class”: “SlideshowImageRule”,
“selector” : “div.article_image”,
“properties” : {
“image.url” : {
“type” : “string”,
“selector” : “img”,
“attribute”: “src”
}
}
}{
“class”: “SlideshowImageRule”,
“selector” : “figure”,
“properties” : {
“image.url” : {
“type” : “string”,
“selector” : “img”,
“attribute”: “src”
}I have the same problem…I update to latest version… i try use with Custom transformer rules
{
“class”: “SlideshowImageRule”,
“selector” : “figure”,
“properties” : {
“image.url” : {
“type” : “string”,
“selector” : “img”,
“attribute”: “src”
}but still don’t load class=”op-slideshow”