Important: this documentation is not applicable to your currently selected format email!
amp-wordpress-embed
Description
Embeds a WordPress post.
Required Scripts
<script async custom-element="amp-wordpress-embed" src="https://cdn.ampproject.org/v0/amp-wordpress-embed-1.0.js"></script>
<script async custom-element="amp-wordpress-embed" src="https://cdn.ampproject.org/v0/amp-wordpress-embed-1.0.js"></script> <link rel="stylesheet" href="https://cdn.ampproject.org/v0/amp-wordpress-embed-1.0.css">
Supported Layouts
Behavior
This extension creates an iframe and displays the excerpt of a WordPress post or page.
Standalone use outside valid AMP documents
Bento allows you to use AMP components in non-AMP pages without needing to commit to fully valid AMP. You can take these components and place them in implementations with frameworks and CMSs that don't support AMP. Read more in our guide Use AMP components in non-AMP pages.
To find the standalone version of amp-wordpress-embed
, see bento-wordpress-embed
.
Attributes
data-url (required)
The URL of the post to embed.
common attributes
This element includes common attributes extended to AMP components.
Validation
See amp-wordpress-embed rules in the AMP validator specification.
Anda telah membaca dokumen ini belasan kali, tetapi belum semua pertanyaan Anda terjawab? Mungkin orang lain merasakan hal yang sama. Berinteraksilah dengan mereka di Stack Overflow.
Kunjungi Stack Overflow Menemukan bug atau ada fitur yang kurang?Proyek AMP sangat menganjurkan partisipasi dan kontribusi Anda! Kami berharap Anda akan terus ambil bagian dalam komunitas sumber terbuka kami, tetapi kami juga menerima kontribusi satu kali untuk topik tertentu yang Anda minati.
Kunjungi GitHub