Support » Fixing WordPress » URL for portfolio projects (domain.com/work/work-item)

  • Resolved rosacreative

    (@rosacreative)


    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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • esmi

    (@esmi)

    Forum Moderator

    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.

    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.

    esmi

    (@esmi)

    Forum Moderator

    @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.

    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.

    esmi

    (@esmi)

    Forum Moderator

    /%year%/%monthnum%/%day%/%postname%/

    /%year%/%monthnum%/%day%/%postname%/

    I dont understand how that permalink helps me achieve my goal of domain.com/work/work-item?

    esmi

    (@esmi)

    Forum Moderator

    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.

    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!

    esmi

    (@esmi)

    Forum Moderator

    If you want a work/work-item url structure, you’ll need to create child Pages instead.

    Oh..I see..a child page for each project item? and will it work the same as a post essentially?

    esmi

    (@esmi)

    Forum Moderator

    It will display in a similar manner. Not sure what you mean by “working the same as a post”.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘URL for portfolio projects (domain.com/work/work-item)’ is closed to new replies.