I need to share articles in twiiter with their own Title, Desription and Image
Can some one pioint out what code do i need to put in meta tags
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@twitter" />
<meta name="twitter:creator" content="@twitter" />
<meta property="og:url" content="WHAT DO I PUT HERE" />
<meta property="og:title" content="WHAT DO I PUT HERE" />
<meta property="og:description" content="WHAT DO I PUT HERE" />
<meta property="og:image" image="WHAT DO I PUT HERE"/>
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Yes i know i see that, but i need the code that goes for title, image and description
<meta property="og:title" content="'.$this->escape($this->item->title).'" /> - THIS is not working form me
<meta property="og:image" content="'.$timage.'" />
Look a the bottom of the page it gives examples. You can't put php in the meta tag.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Mark, thank you for your reply... This is my code
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@twitteraccount" />
<meta name="twitter:creator" content="@twitteraccount" />
<meta property="og:url" content="http://mywebsite" />
<meta property="og:title" content="'.$this->escape($this->item->title).'" />
<meta property="og:description" content="The Institute of Communication Studies (ICS) is a scientific-research institution that administers one-year and two-year Masters Programmes." />
<meta property="og:image" content="'.$timage.'" />
As I said you cannot write php in your meta tags like that and in any case it's not being fired by an event so "this" is not going to work either. I also have no idea where you are adding that code or into what? You haven't even encapsulated the php in php tags either?
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Ok, the meta tags are in index.php of the template (Ricochet) right after <?php
and can you please help me with this one, i realy need some instructions as i`m doing this for the first time
But then you're mixing html and php in the same tag.
I also now see that your subscriptions appear to have expired. Support does require a current subscription.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.