how to use it on a shortcode/template?
-
Thank you for this plugin, it looks great, but how do I make it display?
Is there something like a shortcode or php code I can use?$categories = get_the_terms( get_the_ID(), 'portfolio-category' ); if ( ! empty( $categories ) ) { echo esc_html( $categories[0]->name ); //this works! echo esc_html( $categories[0]->icon ); // nop echo esc_html( $categories[0]->category-icon ); //displays 0 }
Thanks again.
🙂
- The topic ‘how to use it on a shortcode/template?’ is closed to new replies.