Okay
  Public Ticket #196647
Portfolio Item Slug - Categories
Closed

Comments

  • Patrick started the conversation

    Greetings Nectarians!

    So I am currently still playing around with the theme doing some child theme edits etc etc.

    While I was in the process of creating all of our Portfolio items I added a custom slug in the portfolio options (I named it "resultaten" which translates to "results").
    so my Portfolio item url will be like:
    http://development.redactiepartners.nl/resultaten/portfolio-name

    What I would like to have is the following:
    http://development.redactiepartners.nl/resultaten/category-name/portfolio-item/

    Where in the theme can I find the code to edit this maybe? or is this a simple edit?.

  •  8,837
    Tahir replied

    Hey Patrick!

    You can try out this plugin http://wordpress.org/plugins/custom-post-type-perm...

    Hope this helps.

    Cheers


    ThemeNectar Support Team 

  • Patrick replied

    Hey Tahir,

    The plugin works to a certain extent.

    It allows me to edit the permalink more but I think it has something to do with the way the custom post type works.
    Somehow the code does not understand that %category% is set for the "Portfolio" Custom post type.

    If I use %category% for the normal blog posts it works the permalink will show the category.

    But the pages for Portfolio Items will literally have "%category%" embedded in the url structure.

    Do you guys use a special name for the categories in the Portfolio post type? or is %category% not defined in your code.
    I am not 100% sure how this works cause I never created something like that before.

    I am not using Wordpress SEO plugins that break the tag (in fact there are nog extra plugins used except for Revolution Slider)

    Here is a post I found that sounds like the problem I am encountering maybe you can make sense of it in terms of the theme?

    http://wordpress.stackexchange.com/questions/53515...

    EDIT:

    Okay so I found a solution.
    Using the plugin you mentioned instead of adding "%category%" to the line I instead looked in the code and just by trial and error I found out that "%project-type%" does exactly what I want.

    So now my permalink structure for portfolio items is as follows "/resultaten/%project-type%/%postname%/" and that generates the exact url that I need.

  •  8,837
    Tahir replied

    Hey Patrick!

    Thank you for posting the solution. 

    Cheers


    ThemeNectar Support Team 

  • Patrick replied

    Hey Tahir,

    No problem! as always the support here is great.
    I was especially surprised to see a fix for WP3.9 this morning so fast! I definitely do not regret my purchase on this theme dare I say you could even bump up the price for the theme!
    Considering the amount of support and work has been done I am definitely very happy.

    I will mark this topic as closed since you did help me along the way and of course I got my answer :)

    Yet again you guys are awesome!

  • [deleted] replied

    Awesome help with this plugin, i was looking to do exactly this. Now is there a way to remove the portfolio slug completely (the "reslutaten" in Patrick's example)? I am using portfolio items for many different things on my website and for examples for the 'location' category i would like to have the url:

    mysite.com/location-one/post-title

    instead of

    mysite.com/portfolio-slug/location-one/post-title

    Makes sense?

  •  8,837
    Tahir replied

    Hey Simon!

    I believe for that you will have to do some url rewriting. Not really an expert so best would be to google it out :) . Just found this link: http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/ 

    Cheers


    ThemeNectar Support Team 

  • adityacb4u replied

    Hi 

    Thanks for the plugin. It's working fine for me when we have only a Parent Category; it's not working for the sub-category and sub-sub-category. Could you please assist?

    Here is the staging URL

    https://staging6.nustar.ph/portfolio/gaming/nustar-slots-tournament/ - Working

    https://staging6.nustar.ph/portfolio/offers/hotel/summer-promo/ - Not Working

    Attached files:  Screenshot 2024-09-13 at 8.29.58 AM.png

  •  1,875
    Judith replied

    Hi there,

    Thanks for writing back.

    You can please reach out to the plugin's team as it is not our plugin. While we are experts in our own products, third-party plugins are best handled by their owners.

     If you have any more questions or run into any problems, please feel free to reach out.

    Best regards,


  •  8,837
    Tahir replied

    Hey Again,

    I am afraid in this case you will have to amend the "Portfolio" CPT code that is registering it. Please create a new ticket with your login credentials and elaborate on what you exactly intend to do . 

    Thanks.


    ThemeNectar Support Team