-1

I'm using the FAQ WD Plugin for FAQ page of my website. I want to add social share to individual questions. The functionality should be that if a user shares an FAQ on any social media network, the link should be to the FAQ page with that particular question open.

Can anyone suggest some how to achieve the goal?

2 Answers2

0

faq_wd_content.php

    <span class="faqwd_share_links">
<a  href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink($post->ID)?>" class="faqwd_fb" data-original-title="Share on Facebook">
</a>
<a  href="http://plus.google.com/share?url=<?php echo get_permalink($post->ID)?>" class="faqwd_gpluse" data-original-title="Share on Google+ ">
</a>
<a  href="http://twitter.com/home?status=<?php echo get_permalink($post->ID)?>" class="faqwd_twitter" data-original-title="Tweet It">
</a>
</span>

Here You get all content that shared on Social.You can get modified otherwise hire someone for customisation.

Vasim Shaikh
  • 4,485
  • 2
  • 23
  • 52
0

I edited the share link to contain the ID as a query string. Then on load of the page, I added a check if the URL contains an ID query param.

If the url has a query param 'ID', then in the particular FAQ with that ID, I added the 'opened' CSS class to open it.