AMP

amp-wordpress-embed

Experimental
Bento

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>

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.

Требуется дополнительная помощь?

Вы читали этот документ десятки раз, но так и не нашли ответов на все свои вопросы? Возможно, другие люди столкнулись с такой же проблемой — обратитесь к ним на Stack Overflow.

Перейти на Stack Overflow
Нашли ошибку или недостающую функцию?

Проект AMP активно поощряет ваше участие и сотрудничество! Мы надеемся, что вы станете постоянным участником нашего открытого сообщества, но разовые вклады в работу над задачами, которые вам особенно интересны, также приветствуются.

Перейти на GitHub