[英]Facebook feed not working on wordpress site
I have a word press
site where I need to display the facebook
feed. 我有一个
word press
网站,我需要在这里显示facebook
feed。 I have installed the Facebook plugin
for word press, I configured to show the desired facebook page feed, but it displays nothing. 我已经安装了用于单词按下的
Facebook plugin
,我已配置为显示所需的Facebook页面提要,但未显示任何内容。 Do you have any idea what am I doing wrong? 你知道我在做什么错吗?
This is the page where I need to display 这是我需要显示的页面
<div class="col-md-4">
<div class="hidden-xs">
<h1 id="tgb_head"><span id="facebook_icon" class="social-content-icon"></span> Facebook</h1>
<div class="tab-content">
<div class="tab-pane active fade in">
<ul class="list-unstyled" id="facebook_ticker">
[custom-facebook-feed]
</ul>
</div>
<div id="facebook_ticker_controls" class="ticker-controls">
<a href="#" class="prev pull-left" id="fprev"><span class="glyphicon glyphicon-chevron-down"></span> Previous</a>
<a href="#" class="next pull-right" id="fnext">Next <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
</div><!-- end tab-content -->
</div><!-- end facebook -->
Thanks! 谢谢!
WordPress shortcodes are only parsed in content you input in the editor and send through the content filter. WordPress短代码仅在您在编辑器中输入并通过内容过滤器发送的内容中进行解析。 You can not just write
[foo]
in your template , and expect that to parse the shortcode. 您不能只在模板中写
[foo]
并期望它解析短代码。
You need to call do_shortcode
in that place instead. 您需要在该位置调用
do_shortcode
。
https://css-tricks.com/snippets/wordpress/shortcode-in-a-template/ https://css-tricks.com/snippets/wordpress/shortcode-in-a-template/
https://developer.wordpress.org/reference/functions/do_shortcode/ https://developer.wordpress.org/reference/functions/do_shortcode/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.