PHP - 用帖子标题替换通用按钮文本

问题描述 投票:0回答:0

我想将帖子摘录按钮上的通用文本“阅读更多”替换为帖子标题。

我该怎么办? 谢谢

<h3 class="title"><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" class="btn-more"><?php esc_html_e( 'read more','construction-landing-page' ); ?></a>
php post button title
© www.soinside.com 2019 - 2024. All rights reserved.