So let’s say I have a post type called projects (so the slug being"project")
If I want to have a page to show all the projects now I understand you have to go to Add New Page
and then create a page called projects with the url (site.com/projects) and then you make a file on
page-projects.blade.php where you would loop through all the projects. Then for a single project you create a php file called
content-single-projects.blade.php etc… but lets say I wanted to have a unique header for that post type. Lets say i wanted to show a different header when loading
content-single-projects.blade.php (meaning when i load a single project page) … Whats the best way to do that? would i have to create a
I tried doing that but i didn’t work, but am i in the right track?