• Resolved ThinkByDesign

    (@thinkbydesign)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Elementor jobs Archive template getting 404’ is closed to new replies.