Replace department word in the URL

  • Posted in : Photographer
  • TimTaller
    Participant

    Hi,

    please let me know how to replace “deparment” word in the URL with another. I have http://www.xchaus.com/my-works/ page (portfolio template) that lists all galleries, however then the URL changes to http://www.xchaus.com/department/lifestyle/ instead of http://www.xchaus.com/MY-WORKS/lifestyle/.

    Thanks

    Rgds,
    Konst

    serkan
    Moderator

    Hi Konst;
    Sorry It is not possible by default. You can not move the “departments” word in the url.
    Thanks

    TimTaller
    Participant

    Thanks for the answer. Just to be clear – it is not possible to replace “departments” with let’s say “my-works”. The word is hard-coded in the theme?

    I saw several websites using photographer theme while reading the forum. Some of them did not have this word in the URL (unless they did not use nested portfolios and I missed this fact).

    serkan
    Moderator

    Hi @TimTaller;
    You can change portfolio slug and this topic is related with that issue http://www.pixelwars.org/forums/topic/change-portfolio-slug
    But departments are working differently. Maybe you can search an alternative plugin for this but i am not sure that it will work for you.
    Thanks

    TimTaller
    Participant

    OK, I’ll give it the last try (seems like I’m always posting before the second coffee :).

    I would like to get a structure like this:

    1. http://www.site.com/portfolio/ – shows all “departments” (fashion photography, portraits). This is a “page” with “portfolio” template
    2. http://www.site.com/portfolio/portraits/ – shows all “portfolio” that have “portraits” as a “department”
    3. http://www.site.com/portfolio/portraits/gallery1 – shows a “portfolio” gallery1

    This is what I want.

    The way it works now is:
    1. http://www.site.com/portfolio/ – OK
    2. http://www.site.com/department/lifestyle/ – I’d like to replace the word “department” in the URL to “portfolio” – is it possible?
    3. http://www.site.com/portfolio/gallery1/ – can I have (www.site.com/portfolio/portraits/gallery1) – this?

    TimTaller
    Participant

    OK, I managed to achieve (3) by using Custom Post Type Permalinks.

    The only part of the question remaining is how to get from http://www.site.com/DEPARTMENT/portraits/ to http://www.site.com/PORTFOLIO/portraits/

    the word portfolio in the URL (permalink) has nothing to do with the post type “portfolio” and the question is – is it possible to replace the “department” in the URL to something different, without rewriting the code?

    ahmetsali
    Keymaster

    Hi, sorry but it is not possible to have a url structure like this;

    – portfolio/department-name

    as this will conflict with portfolio single url as it is also in the same form;

    – portfolio/portfolio-single-post-name

    and wordpress doesn’t allow this kind of url structure.

    Have a nice day.

    TimTaller
    Participant

    Well… I’m not insisting on the word “portfolio” as I understand it will break the logic of the theme. My point is simple: is it possible to replace the word “department” with a different one or not?

    I’m fine it the URL will look like http://www.site.com/works/portraits

    serkan
    Moderator

    Hi @TimTaller;
    I see your concern and we will add a new option to change keyword department to anything else you want with the next update. So you can have a chance to change it.
    Thanks

    TimTaller
    Participant

    Great, thanks

    TimTaller
    Participant

    Hi, any update on this? It’s been almost a year.

    Thanks

    serkan
    Moderator

    I will forward this topic to our developer. He will contact to you soon. Thanks for your patience.

    ahmetsali
    Keymaster

    Hi, we plan to release a new update in about a week or two, and we will pack this feature into the new update.

    Anatole
    Participant

    HI
    Any news since ?

    ahmetsali
    Keymaster

    Hi, the update will be available in a week, sorry for the delay :/

    Jibin10
    Participant

    Hi,

    I need to replace the word ‘Department’ from the URI, Is there any solution?

    serkan
    Moderator

    Hi, I will talk to the developer and keep you updated.
    Thanks for your patience.

    sk_rocks
    Participant

    Any Idea, how much more time this update might take?

    serkan
    Moderator

    Hi, I can not give a definite date, but the relevant colleague got the necessary explanations. The update will be released as soon as possible.
    Thanks

    Mehmet S.
    Keymaster

    Hi, we have released a new update with the fix, you can download and update your theme now.

    https://themeforest.net/user/pixelwars/portfolio

    New option for that:

    Appearance > Theme Options > Portfolio > Custom URL Structures

Viewing 20 posts - 1 through 20 (of 20 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register