Related to: https://github.com/Automattic/amp-wp/issues/760
On WP we insert the playbuzz tag like this:
[playbuzz-item item="id-from-the-content-here" format="story"]
and the amp tag for playbuzz is:
<amp-playbuzz
src="id-from-the-content-here"
height="500"
data-item-info="true"
data-share-buttons="true"
data-comments="true">
</amp-playbuzz>
I need it when inserted the playbuzz item in wordpress, automatically insert the content id in the "src" tag of amp
@amedina hey, playbuzz items should be supported, its already merged into the master and went live with version 0.5 (see change log).
however, i'm experience issues with last the update ( version 0.5.1) when the the amp-playbuzz component seems to be stripped out.
hey @lysk88 , I saw your name on changelog :D
so are you saying that this issue was solved with version 0.5? How can I do it?
The playbuzz amp tag is auto generated by the main (wordpress) tag?
thanks
@brunomosciatti
seems like amp-playbuzz not working well with version 0.5.1.
I will open a new issue to handle this from there.
meanwhile , you can try to install version 0.5, amp-playbuzz should working fine with that version. you can download it from here https://wordpress.org/plugins/amp/advanced/
@lysk88 got 404 for this url :/
I can install version 0.5 but how the amp-playbuzz works? Its auto generated?
The playbuzz amp tag is auto generated by the main (wordpress) tag?
yes.
thanks a lot @lysk88 ! it really works on 0.5
Hi guys, my bad. Looking into it.
HI @lysk88, @brunomosciatti My bad; looking into it.
@lysk88, @brunomosciatti Could you share some of the shortcodes you are using to test? (if they are public stories)
sure, try this
[playbuzz-item item="022092ce-8a99-48ab-aa5a-a40517c77074" format="list"]
@lysk88, Are you using another plugin such as this one?
Playbuzz is not "directly" supported by the plugin in the sense that there is not an embed handler for it; instead, the plugin transcodes (sanitizes) a Playbuzz embed placed in the post via other means (e.g. another plugin) into an amp-playbuzz component. Want to determine how is the playbuzz shortcode transcoded into an playbuzz embed first, before it is handled by the AMP plugin.
sorry, i think i confused you.
this -> [playbuzz-item item="022092ce-8a99-48ab-aa5a-a40517c77074" format="list"]
is playbuzz shortcode that can be transcoded to playbuzz embed code ->
<script type="text/javascript" src="//cdn.playbuzz.com/widget/feed.js"></script>
<div class="pb_feed" data-embed-by="64fc80bf-6235-4325-9068-9c7eb32714b2" data-item="022092ce-8a99-48ab-aa5a-a40517c77074"></div>
via the plugin you mentioned above.
amp plugin looking for playbuzz embed code then transcoded it to amp-playbuzz.
Hi guys, I have this in Search Console for several AMP with playbuzz:
"The extension 'amp-playbuzz' was found on this page, but is unused."
I found out that 'src' is a required attribute, but amp-playbuzz supports either 'src' or 'data-item'. As a quick workaround I'm inserting an empty 'src' attribute in AMP_Playbuzz_Sanitizer when 'data-item' is found.
Looking forward for a real fix.
Thanks
My workaround doesn't work, not I"m getting: Mutually exclusive attributes encountered in tag 'amp-playbuzz' - pick one of ['src', 'data-item'].
Hey @amedina,
Do you have any news? can i help in someway?
@alongendler Unfortunately I haven't had time to dig into this at all :( We will as soon as we can. If you have a proposed solution please submit a PR.
Hey guys, after updating my plugin Im with some issues according to Google Search Console.
AMP Page for example: https://todateen.com.br/anitta-dj-alok-produzindo-parceria/amp/
The Amp Validator (https://validator.ampproject.org/) says that is a
Most helpful comment
On WP we insert the playbuzz tag like this:
[playbuzz-item item="id-from-the-content-here" format="story"]and the amp tag for playbuzz is:
I need it when inserted the playbuzz item in wordpress, automatically insert the content id in the "src" tag of amp