Page 1 of 1

OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 27 Apr 2021, 18:36
by takeroyd
Hi there,

I like the functionality of the Phoca Open Graph plugin, but it doesn't seem to work OK with Linkedin. When I set the Render Type to Property instead of Name, the IMAGE meta vanishes from the meta tags. Go back into Render Type: Name and everything is OK, except that the image isn't recognised by Linkedin, which seem to require <meta property="og:image...

Any ideas what could be causing this difference between the two Render Types. I have left all the other settings default.

Thanks,
Tim

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 28 Apr 2021, 14:25
by Jan
Hi, there is no difference, only the "name" is changed to "property".

See:
https://www.phoca.cz/news/1128-phoca-de ... 3-released

and its source code:
Image

Jan

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 28 Apr 2021, 16:01
by takeroyd
Hi Jan,

That's what I thought would happen. When I have the render type set to Name, It all seems to work fine, but I need Property for Linkedin. When I change the render type to Property & empty the cache, these are the og:image meta entry just disappears.

I've created two imgur images of the difference in my meta tags, but cannot submit the post with the BBCodes :
Getting an error message : You cannot use certain BBCodes: (square bracket)img(/square bracket).

Tim

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 28 Apr 2021, 16:56
by Jan
Hi, you can paste links to the images here.

But better will be to see the live site to see the source code.

The meta attributes are rendered for all attributes the same way, so when all other are rendered without problem with "property", there is no reason to render the image the same way :idea:


Jan

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 29 Apr 2021, 09:46
by takeroyd
Hi Jan,
Thanks for your quick response. Here is the HTML source code meta with render type set to Name:
https://i.imgur.com/VNNvip0.png
Here's the same page with render typeset to Property & the cache emptied:
https://i.imgur.com/gpH15tq.png

Finally, here's a typical URL from the site (render type set to Name):
https://vous-venez-quand.com/s-investir/tourisme.html

Thanks,
Tim

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 01 May 2021, 12:30
by Jan
Hi, the question is which part renders the meta tags with name.

I see both there - with name and property? Does it mean, you are using more tools for rendering the tags? Phoca Open Graph plugin can only produce one type of meta tags (name or property but not both).

So first try to disable other tools which produces the tags to see which extension is active when displaying them?

If this will be not found, then only a debug can help (means debug directly the php file to see why some tag is not rendered ...)

Jan

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 04 May 2021, 11:42
by takeroyd
Hi Jan,

Thank you very much - you found the problem. Its was a conflict with the JSitemap Pro extension.
All fixed now...!

Regards,
Tim

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 07 May 2021, 12:46
by Jan
Ok, great to hear it.

Jan

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 26 Feb 2023, 15:45
by pierrepisano
Hi Jan,

I have exactly the same problem than Tim. I have deactivated JSitemap in case it was the reason of the problem.


Regards,
Pierre

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Posted: 02 Mar 2023, 14:34
by Jan
OK