无法在此elseif中找到问题
代码检查器建议额外}但是我找不到它
if (get_field('job_salary') == "Competitive") {
echo "Competitive";
} elseif (get_field('job_salary') == "P.A") {
echo the_field('job_salary_singular');
} elseif (get_field('job_salary') == "P.A Range"){
echo "£" . the_field('job_salary_range_start') . " - " . thefield('job_salary_range_end');
} elseif (get_field('job_salary') == "Per Day"){
echo "£" . thefield('job_salary_day_rate') == " per day";
} elseif (get_field('job_salary') == "Per Day Range"){
echo "£" . the_field('job_salary_day_range_start') . " - " . the_field('job_salary_day_range_end') . " pd"
}
答案 0 :(得分:2)
最后一个'echo'行没有分号。 :)因此,最后}似乎是额外的。