質問編集履歴
1
ループ内a要素のifを削除しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
<?php if ($wp_query->have_posts() ) : ?>
|
50
50
|
<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
|
51
51
|
<li class="p-news__item" id="post-<?php the_ID(); ?>">
|
52
|
-
<a href="<?php
|
52
|
+
<a href="<?php the_field('external_link'); ?>" class="c-card">
|
53
53
|
<figure class="c-card-figure">
|
54
54
|
<img src="<?php the_field('news_thumbnail'); ?>" alt="" />
|
55
55
|
</figure>
|