Akasa Code WP

Bộ lọc the_excerpt

31 Tháng 10, 2018 admin 1 min read

[php]

//Giới hạn 100 số từ cắt từ hàm the_excerpt :

add_filter(‘excerpt_length’,function($number){
return 100;
});

// thay đổi kí tự hiển thị xem tiếp trong hàm the_excerpt

add_filter(‘excerpt_more’,function($more){
return “…”;
});
[/php]

0 0 đánh giá
Đánh giá bài viết
Please wait...
Theo dõi
Thông báo của
0 Góp ý
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất