0
固定鏈接設置爲:調用/嵌入wordpress後外循環?後
<a href="/?link=<?php echo get_permalink($postid); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
舉例談到這一點:
http://website.com/?link=http://website.com./post-example/
我想留主頁上,現在我需要代碼中嵌入的http://website.com./post-example/
內容,好處我們是否有帖子標籤post-example
。
通過該標籤,我現在可以在主頁中調用並嵌入此帖子了嗎? $_GET['link']
將獲得http://website.com./post-example/
現在我該如何致電此帖子?
任何解決方案?
它應該是這樣的:
如果url中存在?link=
,則調用此函數(嵌入帶有標題和內容的帖子),否則什麼也不做。