You need to use double quotes instead of single quotes in order to interpolate the variable value into the string. Also, you need to use curly braces to enclose the function call within the string. Here's the corrected code:

echo 'salam ' . get_the_title($comment->comment_post_ID);


原文地址: https://www.cveoy.top/t/topic/oyc7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录