-
I can show post categories on normal post pages by making this shortcode:
function myshortcode_category( ){
return get_the_category( $id )[0]->name;
}
add_shortcode( ‘page_category’, ‘myshortcode_category’ );But the same shortcode doesn’t work with portfolio categories. Can you tell me how to modify this to display portfolio category instead?
Thanks for your time! Your theme has been indispensable and we use it for all our websites.
-
HB-Themes support team typically replies to all topics within 48 hours except on weekends and public holidays. You must register to post topics.
Forum Categories
- Highend WP Theme 25,503
- Aegaeus WP Theme 1,616
- Requests and Feedback 133