ฟังก์ชั่นที่ใช้ใน wp
function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$content = strip_tags($content);
ตรงที่ $content = str_replace(']]>', ']]>', $content); ผมอยากให้มันตัดประโยคนี้ออกไปด้วย
Advertisement (adsbygoogle = window.adsbygoogle || []).push({});
จากที่พบใน the_content อะครับ ผมต้องเพิ่มอะไรเข้าไปครับ
งงมากๆงมมานาน หาเท่าไหร่ก็ไม่เจอ

+1 ทุกคำตอบครับ
