Jump to content

Erwin

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Erwin

  • Rank
    Newbie
  1. Hi all, I hope someone can help me figure this out 😊 On my website I am showcasing some featured projects. I am successfully using the following code to 'fetch' 3 random projects: <?php $projects = $pages->find("template=project-details, sort=random, limit=3"); if($projects) { foreach($projects as $p) { // Project stuff here... } } ?> Is there a way to 'target' the first project so I can add some specific HTML mark-up? For example: the first project shows an image, title, date and short description. The following two projects only show a title. Hope my question makes any sense 😄 Thanks! Erwin
×
×
  • Create New...