Elementor jobs Archive template getting 404

[ad_1]

Our job listings are using categories as a medical specialty.

We’ve added the following PHP…

add_theme_support( 'job-manager-templates' );

function dm_display_wpjm_categories () {
 	 $terms = get_terms( array(
    'taxonomy' => 'job_listing_category',
    'hide_empty' => false,
) );
  
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');

… in order to allow Elementor to see the CPT’s/archive types for WPJM data structures and create the shortcode to list them with their links. I then created an Elementor archive template and assigned it to job listing archives. Finally, I then created a page (referenced as the page I need help with), and added the shortcode to display the categories and links.

Unfortunately, when the links are clicked, I just get a 404 page.

I have saved permalinks, I’ve run the site in safe mode with only the PHP required for the links and shortcode to work, with no change. There’s nothing exotic in the .htaccess file. No server-side redirects. In short, I can’t find any reason why this might be getting a 404. Hopefully someone here will have a lead.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer