function dm_display_wpjm_categories () {
$terms = get_terms( array(
'taxonomy' => 'job_listing_category',
'hide_empty' => false,
) );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
echo '';
foreach ( $terms as $term ) {
echo '- ' . '' . $term->name . '
';
}
echo '
';
}
}
add_shortcode('list_categories', 'dm_display_wpjm_categories');
Copyright © 2025 by WP CODE SNIPPETS
Join our mailing list to receive the latest news and updates from our team.