Jump to content

Erwin

Members
  • Posts

    2
  • Joined

  • Last visited

Erwin's Achievements

Newbie

Newbie (2/6)

1

Reputation

  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...