Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dm_display_wpjm_categories () {
- $terms = wp_get_post_terms( get_the_ID(), 'job_listing_category' );
- if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
- echo '<ul>';
- foreach ( $terms as $term ) {
- echo '<li>' . '<a href="' . esc_url( get_term_link( $term ) ) . '">' . $term->name . '</a></li>';
- }
- echo '</ul>';
- }
- }
- add_shortcode('list_categories', 'dm_display_wpjm_categories');
- add_theme_support( 'job-manager-templates' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement