przemekhernik / footmate.pro

Other
13 stars 0 forks source link

Custom post type support? #26

Closed asuh closed 3 months ago

asuh commented 3 months ago

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?

asuh commented 3 months ago

Took me until now to understand that Laravel doesn't like @include for this syntax but now uses @includeFirst, which fixes the issue.