GG資源網

WordPress插件錯誤語法錯誤,意外\'endwhile\'[重複]

問題描述:

This question already has an answer here:

I\'ve migrated a website across from a cheapo deluxe host over to my AWS Lightsail instance. Now everything works until I go to this page. It worked OK on the old host but on lightsail it\'s not working at all. I just get the WordPress plugin Error syntax error, unexpected \'endwhile\' on line 87 error.

I\'ve tried everything I can think of and have spent a good few hours tinkering and Googling. I\'m sure im missing a single } or { somewhere

PHP isn\'t my strong point so any help would be greatly appreciated.

Code below is the original file, without my tinkering.

Thanks everyone!

網友觀點:

line 41 <? } ?> should be <?php } ?>

you can also just use { to open while loop instead of :. Using : in your case is little messed up since your php is a mess with html

Also when looking at the while ( $projectloop->have_posts() ) this isn\'t a while loop but rather if statement

check this out http://php.net/manual/en/control-structures.while.php

Your while loop needs a statement while ($count <= 10) {

由於網站搬家,部分鏈接失效,如無法下載,請聯繫站長!謝謝支持!
1. 帶 [親測] 說明源碼已經被站長親測過!
2. 下載後的源碼請在24小時內刪除,僅供學慣用途!
3. 分享目的僅供大家學習和交流,請不要用於商業用途!
4. 本站資源售價只是贊助,收取費用僅維持本站的日常運營所需!
5. 本站所有資源來源於站長上傳和網路,如有侵權請郵件聯繫站長!
6. 沒帶 [親測] 代表站長時間緊促,站長會保持每天更新 [親測] 源碼 !
7. 盜版ripro用戶購買ripro美化無擔保,若設置不成功/不生效我們不支持退款!
8. 本站提供的源碼、模板、插件等等其他資源,都不包含技術服務請大家諒解!
9. 如果你也有好源碼或者教程,可以到審核區發布,分享有金幣獎勵和額外收入!
10.如果您購買了某個產品,而我們還沒來得及更新,請聯繫站長或留言催更,謝謝理解 !
GG資源網 » WordPress插件錯誤語法錯誤,意外\'endwhile\'[重複]

發表回復

CAPTCHAis initialing...