Support ForumShow portfolio category slug if exist in url – Support Forum https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/feed Thu, 26 Dec 2024 20:52:29 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8198 <![CDATA[Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8198 Tue, 12 May 2015 07:23:12 +0000 fafchook Hey, good people, how are you?
I have a hierarchy in the portfolio section where some portfolio items have category (that matches a parent portfolio item) for example: a single portfolio item named USA with the url: https://domain-name.com/portfolio/usa.
What i’m aiming to achieve is to show the portfolio items that are related to a category to show the category in the url. for example: a portfolio item called ny and related to category USA to have a url: https://domain-name.com/portfolio/usa/ny *it does show in the breadcrumbs like so, but not in the url.
Also i want it to have a condition that if a category is not assigned not to show the category name in the url.
How can it be done? would appreciate any kind of help.
Best regards

]]>
https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8211 <![CDATA[Reply To: Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8211 Wed, 13 May 2015 06:02:35 +0000 IshYoBoy Hey,

This involves some custom code and you will have to play with it a little. Check these items:
https://wordpress.stackexchange.com/questions/96126/custom-post-type-taxonomy-slug-post-title-with-post-type-archive
https://wordpress.org/support/topic/insert-category-of-taxonomy-between-custom-post-type-and-post

The file where the portfolio CPT is registered is:
ishyoboy-no8-assets/ishyoboy-cpt/assets/backend/cpt/portfolio-post.php

It can be overridden and as you can see each function is overridable ;) Hope this helps.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8226 <![CDATA[Reply To: Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8226 Wed, 13 May 2015 10:03:32 +0000 fafchook Thanks.
I can’t seem to find the path you mantioned. I don’t see a folder named “ishyoboy-no8-assets”.
Besides that, what is the best way to overide the file/function?

]]>
https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8240 <![CDATA[Reply To: Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8240 Thu, 14 May 2015 14:20:31 +0000 IshYoBoy Hey,

The “ishyoboy-no8-assets” is a plugin, not part of the theme.

This is an example how to override a shortcode template:

Override shortcode template in a child theme

To override any function simply redefine (copy it and change the content) it in your functions.php of the child theme.

To override a whole file (be careful, do it only if you are sure you need to override the whole file) simply copy it in the same folder structure as it is in the parent theme.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8286 <![CDATA[Reply To: Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8286 Sun, 17 May 2015 14:37:45 +0000 fafchook https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8316 <![CDATA[Reply To: Show portfolio category slug if exist in url]]> https://support.ishyoboy.com/forums/topic/show-portfolio-category-slug-if-exist-in-url/#post-8316 Tue, 19 May 2015 07:57:37 +0000 IshYoBoy Hey,

This is the definition of the slug by default. You will have to follow some of the suggestions in the provided links. You need to “teach” WordPress to use a new permalinks structure not the one that it has by default. This will also need new rewrite rules.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>