Jump to content

mntob

Members
  • Posts

    2
  • Joined

  • Last visited

Contact Methods

  • Website URL
    www.mijokristo.com

mntob's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. I've just started to use Processwire, for now I'm very happy, for now I have one question, sorry if this is a beginner question?. is it possible to make foreach loop like this? <?php foreach ( $pages->find('template=itemProduct1ingle, itemProduct2ingle, sort=-created') as $all ):?> <div class="col-12 col-md-6 col-lg-4 col-xl-3"> <h6><a href="<?=$all->url?>"><?=$all->title?></a></h6> </div> <?php endforeach; ?> I need to list all items from two templates on home page, I hope you understand me ?
×
×
  • Create New...