I have a CPT called 'projects', which display images with their titles.
I have a page to display the CPT's called 'single-projects.php'.
Is there a way through using templates and/or functions, to display the slugs like this:
This is so I can show all the CPT's in that project list on the single-project page.
This doesn't make sense to have each unique post slug if I am just showing one page for all CPT's in that list. I tried the rewrite argument, but I only want to change the slug-of-post.
I know I can change the slug for each CPT in their dashboard, but I want to do it via the back-end.
In my front-page I tried to use echo site_url('/single-project') for the image links but that doesn't work, am I doing it incorrectly?