Custom post type appearing within the previous one on archive.php
Your closing tags for the card and card body divs are outside of the loop. try this: <?php get_header(); if (have_posts()) : while (have_posts()) : ?> <div class=”card container”> <a href=”https://wordpress.stackexchange.com/questions/333813/<?php // this conditional outputs a different link url for CPT”resources’ if (is_post_type_archive( $resources )) { echo ‘https://’ . get_field(‘website’); } else { echo get_the_permalink(); … Read more