我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何创建3个点和括号摘录并链接到博客文章(wordpress)

I have a WordPress website I just over from another web developer, there is the following excerpts on the blog articles : [...]

How can I perhaps add a functionality for these brackets and dots to link to blog articles?

use this code:

function new_excerpt_more($more) {
       global $post;
    return '<a class="moretag" href="'. get_permalink($post->ID) . '"> [...]</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');

近期文章

  • 如何找到复选框内的范围
  • 从客户端到服务器运行PHP Composer命令
  • ffmpeg只在命令行上工作,而不是php
  • 如何从数组输出名称和价格?
  • 如何从arrayform html5模板编写简单的php发送邮件[关闭]
  • 在加载的DIV中传递jquery AJAX / jquery时,Javascript将无效[关闭]
  • PHP联系表格问题
  • PHP警告:mysqli_num_rows()期望参数1为mysqli_result,boolean给出[duplicate]
  • 结帐时间的SQL问题
  • Yii2:未捕获的参考错误
  • 在固定日期使用PHP的mktime()
  • 如何从$ user检索状态值?
  • 如何预测这个多维数组
  • PHP IF构造中的异常行为
  • 如何从它的网址获取Facebook视频ID?
  • 以html格式输入的值不是由php获取的
  • 继续收到错误消息msg使用我的重置传递将数组发送到字符串转换
  • PHP - 按给定值进行多维数组过滤
  • Codeigniter路由器
  • 如何加载某些javascript只在特定页面上延迟,而不是所有页面

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华