仅为 blogspot 中的特定标签显示广告 (AdSense)
Show Advertisement (AdSense) only for specific labels in blogspot
我只想在特定标签中显示广告,如下所示:
但这不起作用。它什么也没给我看。我该如何解决这个问题?我想为标签 Gartenblog、Foodblog、Reiseblog、Fotoblog 和 Blogging 显示 Google AdSense,如果没有这些标签,它应该显示另一个广告。我该怎么做?
<b:if cond='data:post.labels none (label => label.name in ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])'>
<b:if cond='data:post.labels any (label => label.name == ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])'>
如果我只使用一个标签就可以正常工作,但不能用于多个标签。
检查长度:
<b:if cond='(data:post.labels where (label => label.name in ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])).length gt 0'>
<!-- Ad One -->
<b:else/>
<!-- Ad Two-->
</b:if>
我只想在特定标签中显示广告,如下所示:
但这不起作用。它什么也没给我看。我该如何解决这个问题?我想为标签 Gartenblog、Foodblog、Reiseblog、Fotoblog 和 Blogging 显示 Google AdSense,如果没有这些标签,它应该显示另一个广告。我该怎么做?
<b:if cond='data:post.labels none (label => label.name in ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])'>
<b:if cond='data:post.labels any (label => label.name == ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])'>
如果我只使用一个标签就可以正常工作,但不能用于多个标签。
检查长度:
<b:if cond='(data:post.labels where (label => label.name in ["Gartenblog","Foodblog","Familienblog","Reiseblog","Fotoblog","Blogging"])).length gt 0'>
<!-- Ad One -->
<b:else/>
<!-- Ad Two-->
</b:if>