试图返回 $out
$out = '';
$out .= '<form id="agp_upload_image_form" method="post" action="" enctype="multipart/form-data">';
$out .= wp_nonce_field('agp_upload_image_form', 'agp_upload_image_form_submitted');
$out .= $posttile = get_option('posttitle');
$out .= $postdiscription = get_option('postdiscription');
$out .= $postauthor = get_option('postauthor');
$out .= $postcategory= get_option('postcategory');
$out .= $uploadimage= get_option('uploadimage');
$out .= $posttitleenabledisables = get_option('posttitleenabledisables');
$out .= $postdiscriptionenabledisable = get_option('postdiscriptionenabledisable');
$out .= $postauthorenabledisable = get_option('postauthorenabledisable');
$out .= $postcategoryenabledisable = get_option('postcategoryenabledisable');
$out .= $uploadimageenabledisable = get_option('uploadimageenabledisable');
$out .= $posttaxonomies = get_option('posttaxonomies');
$out .= $enablecaptcha = get_option('captchaprivatekey');
if ($posttitleenabledisables == 'disable') { } else {
$out .= '<label id="labels" for="agp_image_caption">"'.if ( isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":</label><br/>';
$out .='<input type="text" id="agp_image_caption" name="agp_image_caption" value="$agp_image_caption ;"/><br/>';
}
但卡在这一点上给出错误
$out .= '<label id="labels" for="agp_image_caption">"'.if ( isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":</label><br/>';
我想要这个回报,但得到错误,因为我认为变量不允许,否则
有人可以告诉如何解决这个问题