So far If I do the_title(); and the_excerpt() it shows only one post. How would you loop through all the post in here.
@extends('layouts.app')
@section('content')
<h1 class="advcolor text-center mt-5">@php single_cat_title(); @endphp</h1>
<div class="container">
<h1 class="advcolor">@php the_title(); @endphp</h1>
<p> @php the_excerpt(); @endphp</p>
</div>
@endsection
This seems like a general WordPress question, not something specific to the Roots stack. You need to have those things inside The Loop.
Yeah i know its more of a WordPress question but what confuses me is how to do actually program the Loop on Laravel since I am not very used to it. Like how would a typical loop look in Laravel I guess.
system
Closed
September 30, 2020, 4:45pm
7
This topic was automatically closed after 42 days. New replies are no longer allowed.