我正在尝试制作一个漫画网站,该网站上的箭头指向单曲的第一个/上一个/下一个/最新。php。我已经链接了前3个,但我正在努力弄清楚如何链接到最新的。感觉应该没那么难,但谷歌只给了我在菜单中链接它的方法。这是迄今为止我为漫画导航菜单所用的代码。alt为“last”的最后一幅图像是我需要链接的:
<?php while ( have_posts() ) : the_post(); ?>
<div class="col-md-offset-1 col-md-2 col-sm-2 comic-first">
<a href="https://echomartin.com/unit418/comic/01/"><img src="https://echomartin.com/unit418/wp-content/uploads/2017/10/arrows-first.png" alt="First"></a>
</div>
<div class="col-md-6 col-sm-6 comic-navigation">
<?php the_post_navigation( array(
\'prev_text\' => \'<span class="screen-reader-text">\' . __( \'Previous Post\', \'multipurpose-blog\' ) . \'</span> <span class="comic-previous"><span class="nav-title-icon-wrapper">\' . \'</span>%title</span>\',
\'next_text\' => \'<span class="screen-reader-text">\' . __( \'Next Post\', \'multipurpose-blog\' ) . \'</span><span class="comic-next">%title<span class="nav-title-icon-wrapper">\' . \'</span></span>\',
) ); ?>
<h3><?php the_title();?></h3>
</div>
<div class="col-md-2 col-sm-2 comic-last">
<img src="https://echomartin.com/unit418/wp-content/uploads/2017/10/arrows-last.png" alt="Last">
</div>
<div class="clear"></div>