Support Foruminsert the current taxonomy title in the portfolio post – Support Forum https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/feed/ Fri, 04 Sep 2026 08:58:10 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4831 <![CDATA[insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4831 Thu, 25 Sep 2014 15:37:04 +0000 simonadp hello, i need to insert the current taxonomy title in the portfolio post. which code i shoud add in the single-portfolio.php?

for example here:
https://tinyurl.com/m6drvcb
i need to view the sub-category “Scuole dell’infanzia” just before my body text. thanks

]]>
https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4839 <![CDATA[Reply To: insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4839 Fri, 26 Sep 2014 05:00:41 +0000 IshYoBoy Hi,

The single template is “single-portfolio-post.php”

You might need to load all portfolio item’s terms (its categories):

$terms = get_the_terms( get_the_ID(), 'portfolio-category' );

And then process the Array that is returned. Read more about the get_the_terms function here to be able to use it to get to the exact information you need:
https://codex.wordpress.org/Function_Reference/get_terms

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/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4879 <![CDATA[Reply To: insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4879 Mon, 29 Sep 2014 12:41:02 +0000 simonadp sorry, i tried but my knowledge of php is very basic :(
can you help me to write the right code? i need to view the current category on my portfolio single item page.
thanks for your help

]]>
https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4897 <![CDATA[Reply To: insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-4897 Tue, 30 Sep 2014 09:19:06 +0000 IshYoBoy Hi,

You can use a child them (E.g. the starter one we provide along with the theme), edit its function.php and add the following code to it:

Then upload the updated theme to WordPress and activate it. Feel free to customize the code to your needs.

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/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-5031 <![CDATA[Reply To: insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-5031 Mon, 13 Oct 2014 18:43:54 +0000 simonadp solved, thank you!

]]>
https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-5047 <![CDATA[Reply To: insert the current taxonomy title in the portfolio post]]> https://support.ishyoboy.com/forums/topic/insert-the-current-taxonomy-title-in-the-portfolio-post/#post-5047 Mon, 13 Oct 2014 19:28:50 +0000 IshYoBoy Great to hear that ;)

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

]]>