Skip to content
Trang chủ
Giới Thiệu
Hút Hầm Cầu
Thông cống nghẹt
Tin tức
Liên hệ
404
Oops! That page can’t be found.
It looks like nothing was found at this location. Maybe try one of the links below or a search?
Trang chủ
Giới Thiệu
Hút Hầm Cầu
Thông cống nghẹt
Tin tức
Liên hệ
// Code chèn ngày tháng tự động function current_date_shortcode() { return date('d/m/Y'); } add_shortcode('current_date', 'current_date_shortcode'); function replace_current_date_in_title($title, $id = null) { if ((is_single() || is_home() || is_category() || is_front_page()) && !is_admin()) { $title = str_replace('30/03/2024', do_shortcode('30/03/2024'), $title); } return $title; } add_filter('the_title', 'replace_current_date_in_title', 10, 2); function replace_current_date_in_content($content) { if ((is_single() || is_home() || is_category() || is_front_page()) && !is_admin()) { $content = str_replace('30/03/2024', do_shortcode('30/03/2024'), $content); } return $content; } add_filter('the_content', 'replace_current_date_in_content');
x
x