我的博客文章只包含像这样的图片
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_01.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_02.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_03.." alt="" width="960" height="960" /><br/>
<img class="aligncenter wp-image-567 size-full" src="..myimage_src_04.." alt="" width="960" height="960" /><br/>我有Google Adsense In-Article Ads的脚本代码
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins .....xxx....data-ad-layout="in-article"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>假设我在我的博客文章中有9幅图片,我想在3幅图片的每个结尾展示这篇文章中的广告。
像这样..。
<image>
<image>
<image>
<ads>
<image>
<image>
<image>
<ads>
<image>
<image>
<image>
<ads>我尝试过广告插入插件,但它只能选择添加adsafter paragraph。
我怎样才能把我的帖子格式化成这样??
发布于 2018-05-10 14:47:01
可能高级版本有选择。否则,在循环中插入与Adsense相关的代码可能是另一种解决方案。
发布于 2018-05-10 19:00:25
在编辑器中单击图像时,您可能会看到图像点亮的选择。参见本文:https://en.support.wordpress.com/images/image-alignment/
https://wordpress.stackexchange.com/questions/303234
复制相似问题