我在页面上的这个 href 包含在循环 2 滑块中,因此在图像下有一个标题。但是它在单击并打开一个新选项卡时不起作用,它仅在您右键单击然后单击“转到....”时才起作用。有谁知道为什么?
wordpress 上的插件:http: //www.advancedcustomfields.com/
代码:
<a class="alt-caption" href="http://<?php the_field('url_site'); ?>"><?php the_field('url_site'); ?></a>
<div class="paginawrap no_overflow">
<div class="wraptest">
<div class="cycle-slideshow"
data-cycle-fx="carousel"
data-cycle-speed="500"
data-cycle-delay=5000
data-cycle-next=" > img"
data-cycle-caption=".alt-caption"
data-cycle-caption-template="{{alt}}"
data-cycle-carousel-fluid=true
data-allow-wrap=false
>
<?php $args = array(
'post_type' => 'project',
'posts_per_page' => 10
);
$query = new WP_Query( $args );
if ( $query->have_posts()) :
while ( $query->have_posts()) : $query->the_post();
the_post_thumbnail('home');
endwhile; wp_reset_postdata();
endif; ?>
<a href=" http://<?php the_field('url_site'); ?> "> <div class="alt-caption"></div></a>
</div>
<div class="archief1">
</div>
</div>
</div>