- This topic has 2 replies, 2 voices, and was last updated 13 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › share on facebook in single event page
Tagged: facebook, insert php code, share
hello,
i am using a plugin for sharing on facebook: http://wordpress.org/extend/plugins/facebook-share-new/ but however i tried i can’t insert it to the single event page correctly for sharing it on facebook. There are more options in this plugin, but i was using “Display the button on pages”, but url for sharing was generated “http://domain/events%5Bsystem-page of EME]” instead of “http://domain/custom-events-page%5Bcustom page with filters and pagination etc]/%id/title_of_event”.
i tried to insert shortcode “[fbshare]” and php code <?php if (function_exists(‘fbshare_manual’)) echo fbshare_manual(); ?> into the single event page, but there was no succes. (insert php code into the correct place in single format page will be the best solution for me) can you give me a hand with this? Thank you!
Use the available filters for this: http://www.e-dynamics.be/wordpress/?cat=41
I just tried the AddToAny plugin in trunk for facebook sharing, and this works ok. There is a change in trunk that might influence this: wordpress creates a canonical relation link in the http header (link rel=”canonical”) for each page, and that pointed to the “system” page for EME. In my opinion it’s not wordpress place to generate this link-header, since it influences google search as well.
Anyway, this has been corrected in the trunk version so the AddToAny plugin works.
The facebook-share-new plugin is not yet ready for the newest WP releases (uses deprecated ways of implementing things).
EDIT: the AddToAny plugin needs a small change as well: the use of the function A2A_SHARE_SAVE_link_vars() should be omitted, so comment this out everywhere you find it in add-to-any.php . I’ll talk to the owner of this plugin.