Wordpress 初学者程序员请帮我找出代码中的错误
请帮助我查找PHP代码中的错误:Wordpress 初学者程序员请帮我找出代码中的错误,wordpress,Wordpress,请帮助我查找PHP代码中的错误: if(isset(show_title) && $show_title = 1){ $the_title = " <div class=\"sola_t_title\"><a href=\"".get_the_permalink($post->ID)."\">".get_the_title()."</a></div>" }
if(isset(show_title) && $show_title = 1){
$the_title = "
<div class=\"sola_t_title\"><a href=\"".get_the_permalink($post->ID)."\">".get_the_title()."</a></div>"
} else {
$the_title =;
if(isset($show_body)and $show_body == 1){
$the_body = "
div class=\"sola_t_body\">“".striptags(get_the_excerpt(),"<a><b><em><strong><i><h>")."”</div>";
} else {
$the_body = "";
}
if(isset(show_title)&&$show_title=1){
$theu title=”
"
}否则{
$theu title=;
if(isset($show_body)和$show_body==1){
$the_body=”
div class=\“sola\u t\u body\”>&ldquo;。striptags(获取摘录(),“”)。&rdquo;
}否则{
$the_body=“”;
}
if(isset(显示标题)&$show\u title=1){
$theu title=”
"
}否则{
$theu title=;
if(isset($show_body)和$show_body==1){
$the_body=”
div class='sola_t_body'>&ldquo;.striptags(获取_摘录(),“”)。&rdquo;
}否则{
$the_body=“”;
}
您应该添加一些关于错误的描述,但您的代码仍然有帮助。谢谢。
if(isset(show_title) && $show_title = 1){
$the_title = "
<div class='sola_t_title'><a href='".get_the_permalink($post->ID)."'>".get_the_title()."</a></div>"
} else {
$the_title =;
if(isset($show_body)and $show_body == 1){
$the_body = "
div class='sola_t_body'>“".striptags(get_the_excerpt(),"<a><b><em><strong><i><h>")."”</div>";
} else {
$the_body = "";
}