Display different category template if custom field is checked
I achieved this recently with the following code in archive.php add_action(‘genesis_loop’, ‘blah_search_results’); function blah_search_results() { while (have_posts()) : the_post(); if (is_category(‘in-the-news’)) { // Get article URL $article_url = get_field(‘original_article_url’); // rest of theme goes here } endwhile; }