Plugin Author
Franky
(@liedekef)
I am on holiday, but this I can still answer : make sure your theme and other plugins don’t add Facebook headers for the special events page, and then use the EME settings to add specific Facebook headers for events. See also the doc.
Franky thank you for getting back with me. The problem is that I’m using WordPress SEO, which does add facebook headers to every page, and I need to continue using this plugin. Is there no way to make EME behave properly on facebook if I’m using WordPress SEO?
Plugin Author
Franky
(@liedekef)
Since events are not posts, you need to exclude the event page. If the seo plugin doesn’t provide a exclude mechanism on its own, then take a look at this :
https://memberfind.me/disabling-wordpress-seo-plugins-on-a-page-by-page-basis/
Thank you again for your quick response. Unfortunately, the code you provided did not work. I added it to functions.php and changed the condition to “is_page(‘events’)” but when I inspected the code all of WordPress SEO’s meta tags were still present and when I tried to share on Facebook it still redirected to the events page. When your solution didn’t work, I tried deactivating WordPress SEO, but Facebook is still displaying data from the main events page rather than the individual events. II’ve lost a lot of hours to this problem. Do you have any other suggestions?
Plugin Author
Franky
(@liedekef)
As said, I am on holiday. The solution in the link above is not mine but should work to deactivate seo on a specific page. If not, ask wordpress seo for help there. Also you need to check the eme doc and faq for how to set the Facebook headers for events.