2018-01-23, 02:10:27
@Carlos, Thank you for your attention. I also have a question about advertising in feeds. How is it possible to insert a block of adsense into this code so that it also happens to fall out randomly along with other blocks? Thank you.
The google adsense code is standard, for example:
Code:
<?php nm_custom_display_random('
<section>
<div class="mini-posts">
<article class="mini-post">
<header>
<h3 align="justify"><a href="{{ post_link }}">{{ post_title }}</a></h3>
<time class="published" align="justify">{{ post_excerpt }}</time>
</header>
<a href="{{ post_link }}" class="image">{{ post_image }}</a>
</article>
</div>
</section>
'); ?>
The google adsense code is standard, for example:
Quote:<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-format="fluid"
data-ad-client=""
data-ad-slot=""
data-matched-content-ui-type="image_card_stacked"
data-matched-content-rows-num="1"
data-matched-content-columns-num="1"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>