Use @php() instead of @php [...] @endphp

This commit is contained in:
QWp6t
2016-12-09 23:48:31 -08:00
parent b3ebd1f698
commit 945e3b76d7
14 changed files with 27 additions and 29 deletions

View File

@@ -10,7 +10,7 @@
{!! get_search_form(false) !!}
@endif
@while (have_posts()) @php the_post() @endphp
@while (have_posts()) @php(the_post())
@include ('partials.content-'.(get_post_type() !== 'post' ? get_post_type() : get_post_format()))
@endwhile