This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
183 Posts
uriel
26 days ago
0
Topic

Hello When I put the code in the override List - ITEM

<?php $items = $cck->getItems(); ?>


<?php foreach( $items as $item )

{ echo $item->get('field')->value; } ?>

have: 

post 1 post 2 

post1 post2 

post 1 post 2 

post1 post2 

Shape I wish 

post1 post2 

What has changed? 

I need to insert an advertisement every 10 posts. But he repeats it wrong. 

Post 1 
advertisement
post 2 


Hugs

Get a VIP membership