So, I’m working on a theme which will have custom post type for galleries/portfolio. And, as this is the first time I’m making a commercial theme, I’m wondering what’s the best way to do it.
I’m stuck at the logic, which way should I create my templates for that cpt.
1. Using has_archive is great, but.. Lets say, I name my cpt ‘portfolio’ then index for that will be sitename.xx/portfolio (and what if someone likes my theme but, lets say, they want to use it for travelling galleries? URL with /portfolio would look weird.)
2. Create cpt with any name, and make page template with custom loop in it for quering those portfolio/gallery items. (This way I could use any permalink (page title) for my portfolio index, but then.. single items would also redirect to sitename.xx/portfolio/singleitem)
So what’s the best way to do it, in case, not to stick to URL defined by default (defined @ cpt registration)?
Ok, I’ve might solved that myself Second option with ‘slug’ => ’’ might be a solution, tho, still need to test that out.
Ok, it seems I’ve overworked today. Still looking for solution.