![](/img/trans.png)
[英]Wordpress is using index.php instead of single.php for posts
[英]Wordpress: Include a post by title into theme index.php and don't display it in single.php
我想在index.php的Wordpress頁面上顯示“關於我”文本。 我想使用發布中的WYSIWYG編輯器。 文本為段落和ul / li。
get_page_by_title( $slug, OBJECT, 'post');
<-但這會刪除所有的“ <\\ br>” S)。 效果很好: https ://de.wordpress.org/plugins/custom-post-widget/為此已注冊的側邊欄。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.