wordpress建站时用the7主题,文章列表的简要说明要加上超链接的方法是
一:
文件所在的位置
/template-parts/blog/masonry/blog-masonry-post.php
<?php echo presscore_get_posted_on();
echo ‘<div class=”entry-excerpt”>’;
echo ‘<a href=”‘;
echo the_permalink();
echo ‘”>’;
if ( $config->get( ‘show_excerpts’ ) ) { presscore_the_excerpt(); }
echo ‘</a></div>’;
<?php
if ( $config->get( ‘show_excerpts’ ) && isset( $post_excerpt ) ) {
echo ‘<div class=”entry-excerpt”>’;
echo ‘<a href=”‘;
echo the_permalink();
echo ‘”>’;
echo $post_excerpt;
echo ‘</a></div>’; }
?>
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/260143.html