如何使wordpress博客事件标题可以单击并直接指向各自的帖子本身?非常感谢。
<li id="post-<?php the_ID(); ?>" <?php post_class( \'stm_post_info\' ); ?>>
<?php if( get_the_title() ): ?>
<h4 class="stripe_2"><?php the_title(); ?></h4>
<?php endif; ?>
如何使wordpress博客事件标题可以单击并直接指向各自的帖子本身?非常感谢。
<li id="post-<?php the_ID(); ?>" <?php post_class( \'stm_post_info\' ); ?>>
<?php if( get_the_title() ): ?>
<h4 class="stripe_2"><?php the_title(); ?></h4>
<?php endif; ?>
<li id="post-<?php the_ID(); ?>" <?php post_class( \'stm_post_info\' ); ?>>
<?php if( get_the_title() ): ?>
<h4 class="stripe_2"><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></h4>
<?php endif; ?>
Please try this
您也可以尝试以下方法:
<li id="post-<?php the_ID(); ?>" <?php post_class( \'stm_post_info\' ); ?>>
<?php if( get_the_title() ): ?> <h4 class="stripe_2"><a href="<?php echo get_permalink($post->ID);?>" ><?php the_title(); ?></a></h4><?php endif; ?>
这对于特定的帖子更为具体