Closed asuh closed 3 months ago
I would expect the following to render: content-{post-type}.
content-{post-type}
I added the following into index.blade.php to test it out: @include('partials.content-'.get_post_type())
index.blade.php
@include('partials.content-'.get_post_type())
I get the following error: Fatal error: Uncaught InvalidArgumentException: View [partials.content-post] not found.
Fatal error: Uncaught InvalidArgumentException: View [partials.content-post] not found.
@przemekhernik, could the theme get support for custom post types?
Took me until now to understand that Laravel doesn't like @include for this syntax but now uses @includeFirst, which fixes the issue.
@include
@includeFirst
I would expect the following to render:
content-{post-type}
.I added the following into
index.blade.php
to test it out:@include('partials.content-'.get_post_type())
I get the following error:
Fatal error: Uncaught InvalidArgumentException: View [partials.content-post] not found.
@przemekhernik, could the theme get support for custom post types?