【发布时间】:2021-03-18 07:44:36
【问题描述】:
我的站点中有这个 front-page.php 页面,我想直接在 php 页面中放置一个块代码。所以我有一个div,我想把它放在那里。但是代码是这样的
<!-- wp:latest-posts {"postsToShow":3,"displayPostContent":true,"excerptLength":30,"displayPostDate":true,"postLayout":"grid","displayFeaturedImage":true,"featuredImageSizeSlug":"large","align":"wide","className":"tw-mt-8 tw-img-ratio-3-2 tw-stretched-link is-style-default"} /-->
它来自一个小部件。我无法让它工作,请帮助:D
【问题讨论】:
标签: php wordpress wordpress-gutenberg gutenberg-blocks