我正在使用产品模板从自定义帖子类型产品中获取数据。像这样的php
<div class="container" style="margin-top: 20px;">
<h1>Our Products</h1>
<?php
$args=array(\'post_type\' => \'products\');
$query= new WP_Query($args);
while ($query-> have_posts() ) : $query->the_post()?>
<div class="col-lg-2 col-md-2 col-sm-4 col-xs-12">
<h1><?php echo the_title();?></h1>
<?php the_post_thumbnail( \'full\', array( \'class\' => \'innerimages\') );?>
</div>
<?php
endwhile;
?>
</div>
现在我想做的是标题应该是可点击的,一旦点击下一页,我应该能够获得有关点击产品的所有详细信息。我该怎么做?