Use @php() instead of @php [...] @endphp
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<article @php post_class() @endphp>
|
||||
<article @php(post_class())>
|
||||
<header>
|
||||
<h1 class="entry-title">{{ get_the_title() }}</h1>
|
||||
@include('partials/entry-meta')
|
||||
</header>
|
||||
<div class="entry-content">
|
||||
@php the_content() @endphp
|
||||
@php(the_content())
|
||||
</div>
|
||||
<footer>
|
||||
{!! wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']) !!}
|
||||
</footer>
|
||||
@php comments_template('/templates/partials/comments.blade.php') @endphp
|
||||
@php(comments_template('/templates/partials/comments.blade.php'))
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user