[英]Wordpress: Include a post by title into theme index.php and don't display it in single.php
I want to display a "About me" Text on my index.php Wordpress page. 我想在index.php的Wordpress页面上显示“关于我”文本。 I want to use the WYSIWYG editor from a posting.
我想使用发布中的WYSIWYG编辑器。 The text is paragraph and a ul/li.
文本为段落和ul / li。
get_page_by_title( $slug, OBJECT, 'post');
<- but this removes all "<\\br>"s). 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.