[英]changing title of page doesn't work with facebook meta tags
I'm trying to set my meta tags for facebook like, but I have like button on changing page which means that title will be always different.我正在尝试为 facebook 设置我的元标记,但我在更改页面上有喜欢按钮,这意味着标题将始终不同。 My meta tag look like:我的元标记看起来像:
<meta property="og:title" content="<?php echo $listing['Listing']['title']?>" />
or whatever code I put there.或者我放在那里的任何代码。 It shows my title at debuger like:它在调试器中显示我的标题,例如:
<?php echo $listing['Listing']['title']?>
Simply sad, what's in inverted comas, that's title.简直令人难过,倒置的昏迷是什么,这就是标题。 Why?为什么? why it doesn't accpet that php code?为什么它不接受 php 代码?
What file did you post the code into?您将代码发布到哪个文件? It looks like it's not where it's supposed to be... I'd advise putting the tag into your template (/templates/yourtemplate/index.php)它看起来不像它应该在的地方......我建议将标签放入你的模板中(/templates/yourtemplate/index.php)
Alternatively there's alot of extensions that can handle this for you: http://extensions.joomla.org/search?q=facebook+open+graph或者,有很多扩展程序可以为您处理此问题: http://extensions.joomla.org/search?q=facebook+open+graph
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.