Skip to content

Instantly share code, notes, and snippets.

@johnmccole
Created June 26, 2023 15:31
Show Gist options
  • Save johnmccole/a5ac9fc951dee998da9476cf1049bf0f to your computer and use it in GitHub Desktop.
Save johnmccole/a5ac9fc951dee998da9476cf1049bf0f to your computer and use it in GitHub Desktop.
@php $i = 0; @endphp
@while (have_posts()) @php the_post() @endphp
@if($i==0)
@include('partials.content-first-post')
@else
@include('partials.content-'.get_post_type())
@endif
@php $i++; @endphp
@endwhile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment