Use hyphen in view paths as delimiter for fallback views

This commit is contained in:
QWp6t
2016-12-08 15:22:17 -08:00
parent 99752388bc
commit 7f7ce45ed4
4 changed files with 60 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
@section('content')
@while(have_posts()) @php the_post() @endphp
@include('partials/content-single')
@include('partials/content-single-'.get_post_type())
@endwhile
@endsection