Skip to content

Bagaimana cara menyisipkan sebuah elemen pada halaman pages? #282

Discussion options

You must be logged in to vote

Begini kayaknya bisa:

<?php $index = 0; foreach ($pages as $page): ?>
  <article></article>
  <?php if (0 == $index % 3): ?>
    <ins class="adsbygoogle"></ins>
  <?php endif; ?>
<?php $index += 1; endforeach; ?>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yuliakbard
Comment options

Answer selected by yuliakbard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
x.layout Layout extension.
2 participants