function listable_job_listing_post_type_archive_link($link, $post_type) { if ('job_listing' == $post_type) { return listable_get_listings_page_url($link); } return $link; }
<?php if (get_option('job_manager_hide_expired_content', 1) && 'expired' === $post->post_status) { ?> <div class="job-manager-info"><?php esc_html_e('This listing has expired.', 'listable'); ?> </div> <?php } else { ?> <div class="grid"> <div class="grid__item column-content entry-content"> <header class="entry-header"> <nav class="single-categories-breadcrumb"> <a href="<?php echo listable_get_listings_page_url(); ?> "><?php esc_html_e('Listings', 'listable'); ?> </a> >> <?php $term_list = wp_get_post_terms($post->ID, 'job_listing_category', array("fields" => "all", 'orderby' => 'parent')); if (!empty($term_list) && !is_wp_error($term_list)) { // @TODO make them order by parents foreach ($term_list as $key => $term) { echo '<a href="' . esc_url(get_term_link($term)) . '">' . $term->name . '</a>'; if (count($term_list) - 1 !== $key) { echo ' >>'; } }