rosacreative
Member
Posted 2 years ago #
I've set up my portfolio website using page templates to manage the projects.
Currently my permalinks are set up as domain.com/%postname%. If each portfolio project is a post, how can I get each project to appear as domain.com/work/post-name without altering the permalink structure, since I also have a "Blog" section and I prefer to keep that permalink structure.
There's probably a simple answer to this and I'm not seeing it! Thanks so much. WordPress noob here.
Currently my permalinks are set up as domain.com/%postname%.
That's a bad choice of custom permalink structure for a page-centric site. See Using_Permalinks
You may use /%category%/%postname% instead and set your post to 'work' category.
%category%
A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI. Starting Permalinks with %category% is strongly not recommended for performance reasons.
But is not good idea.
rosacreative
Member
Posted 2 years ago #
It's not too late to change the permalinks since my site is still local. If that's the only way, then I'm fine with that.
I initially set up my permalink structure that way because I read somewhere that it's better for SEO and it was what a lot of the very popular blogs were doing.
@carlla: No - that's still a bad choice. You ideally need a numeric at the front of the custom permalink structure so that WP can easily distinguish between Pages & Posts.
rosacreative
Member
Posted 2 years ago #
You ideally need a numeric at the front of the custom permalink structure so that WP can easily distinguish between Pages & Posts.
Can you give me an example esmi?
@esmi: sorry I didn't see the other post after mine, I was looking at codex to search that comment about the bad choice.
/%year%/%monthnum%/%day%/%postname%/
rosacreative
Member
Posted 2 years ago #
/%year%/%monthnum%/%day%/%postname%/
I dont understand how that permalink helps me achieve my goal of domain.com/work/work-item?
It doesn't as such. I was pointing out that the permalink structure that you are using will, almost certainly, cause problems on a site with more than a few Pages. So if you intend to create quite a few Pages, I'd suggest changing it asap.
If you make your work-item Pages children of your work Page, you should get the url structure that you want.
rosacreative
Member
Posted 2 years ago #
If you make your work-item Pages children of your work Page, you should get the url structure that you want.
Hmmm...but if the work-items are posts, how do I make them children pages?
so sorry about all the questions. Appreciate your help!
If you want a work/work-item url structure, you'll need to create child Pages instead.
rosacreative
Member
Posted 2 years ago #
Oh..I see..a child page for each project item? and will it work the same as a post essentially?
It will display in a similar manner. Not sure what you mean by "working the same as a post".