Custom Post Type Slug vs Page Slug
-
Hello,
This is my first post here on the WordPress forums. Luckily I have been able to get by using the codex and forum search. I am just learning wordpress as I create themes and troubleshoot them along the way.
Anyway,
I have recently started dabbling in custom post types.
I have a custom post type called “Portfolio”
Currently each post displays perfectly with the permalink structure as
site.com/portfolio/%post-name%I also have a page that displays my portfolio entries (which I did by creating a page and applying the page-portfolio.php template to it)
Currently it is set at
site.com/portfolio-home/What I want is my portfolio page to show up as
site.com/portfolio/
and each entry to go to
site.com/portfolio/%post-name%If i do this now, it creates problems and my page-portfolio.php template doesnt show up. I am thinking it has to do with slugs and rewrites which is why I changed it to portfolio-home to get around it. However, I don’t like the way that looks.
Any ideas?
if it helps, I used this tutorial to create my custom post type:
http://wp.tutsplus.com/tutorials/creating-a-filterable-portfolio-with-wordpress-and-jquery/Thanks in advance.
- The topic ‘Custom Post Type Slug vs Page Slug’ is closed to new replies.