![](/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.