![](/img/trans.png)
[英]Wordpress redirects single post permalink to the front-page.php file
[英]How to call a WordPress page in the front-page.php file?
我希望我的“關於”頁面和“博客”頁面都成為我的首頁/主頁的一部分。
有沒有辦法可以在首頁中調用“關於”頁面front-page.php
以便我可以保持博客部分看起來相同,但對上面的網站有一個介紹?
You can use an additional wp_query()
in your php template for front-page.php
to only call the one post (by ID) which contains the content of your "about" page: https://developer.wordpress.org/reference /classes/wp_query/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.