Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/249.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Wordpress从帖子标题中删除日期_Php_Wordpress_Date_Title - Fatal编程技术网

Php Wordpress从帖子标题中删除日期

Php Wordpress从帖子标题中删除日期,php,wordpress,date,title,Php,Wordpress,Date,Title,通常我可以毫无问题地完成这项工作,但在代码中,当我继续从页面标题中删除日期时,我删除了一些语法: echo '<h3><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"] .'</a> ' . date("F jS, Y", strtotime($recent['p

通常我可以毫无问题地完成这项工作,但在代码中,当我继续从页面标题中删除日期时,我删除了一些语法:

echo '<h3><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"] .'</a>  ' . date("F jS, Y", strtotime($recent['post_date'])) . "</h3>";
echo“”。日期(“F jS,Y”,strottime($recently['post_date']))。"";

如何删除日期而不删除整个页面

只需删除日期函数

echo '<h3><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"] .'</a> </h3>';
echo';

只需删除日期功能

echo '<h3><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"] .'</a> </h3>';
echo';
尝试以下代码:-

echo '<h3><a href="'.get_permalink($recent["ID"]).'"title="Look'.esc_attr($recent["post_title"]).'" >'.$recent["post_title"] .'</a></h3>';
echo';
尝试以下代码:-

echo '<h3><a href="'.get_permalink($recent["ID"]).'"title="Look'.esc_attr($recent["post_title"]).'" >'.$recent["post_title"] .'</a></h3>';
echo';

我不小心误删除了该句点。非常感谢。我不小心误删除了那个句号。非常感谢。复制粘贴我的答案的逻辑是什么?对不起,老兄,我没有看到你的答案。发布后,我知道你已经这么做了。不要感到抱歉,但我正在重新检查我的答案,我哪里错了吗?谢谢那个家伙:)复制粘贴我的答案的逻辑是什么?对不起,伙计,我没有看到你的答案。在发布之后,我知道你已经这么做了。不要感到抱歉,但我正在重新检查我的答案,我哪里错了?谢谢你的那个家伙:)