Define og:image in Category View
Posted: 02 Feb 2022, 20:25
Hello,
I've installed PhocaOpenGraph and it is working nicely for my articles. The process for choosing which image is displayed is a nice feature missing from other Open Graph plugins I've looked into.
My question is how do I define which image is chosen on Category View pages?
The instruction say this:
Phoca Open Graph uses the following process to display images in open graph meta tags (og:image):
1) Image which is set in parameters of the plugin (plugin parameters) will be set for the image meta tag on the website. In case, parameter Image (Parameter) Order is set to value First.
2) If no image is set in plugin parameter then the image set in category parameters (category of the article - this is valid only for category view).
#2 seems like what I am looking for, but when I define the image under the options tab in the edit category view it is not working. If there are no articles in the category view then no og:image tag is defined. If articles are displayed in the category view then it chooses the image from the first article in the list.
Please advise.
Thanks!
Warren
I've installed PhocaOpenGraph and it is working nicely for my articles. The process for choosing which image is displayed is a nice feature missing from other Open Graph plugins I've looked into.
My question is how do I define which image is chosen on Category View pages?
The instruction say this:
Phoca Open Graph uses the following process to display images in open graph meta tags (og:image):
1) Image which is set in parameters of the plugin (plugin parameters) will be set for the image meta tag on the website. In case, parameter Image (Parameter) Order is set to value First.
2) If no image is set in plugin parameter then the image set in category parameters (category of the article - this is valid only for category view).
#2 seems like what I am looking for, but when I define the image under the options tab in the edit category view it is not working. If there are no articles in the category view then no og:image tag is defined. If articles are displayed in the category view then it chooses the image from the first article in the list.
Please advise.
Thanks!
Warren