Different URL for shared link.
-
Hello wise ones.
I’m using the shortcode within a get_posts loop like this:
echo do_shortcode('[LoginRadius_Share]');
The problem is, the share buttons are linking to the page that contains the loop rather than the post that is looped. Is there a way of passing in the post URL to the shortcode or even writing some different PHP to make it work.
For example:
$link = get_permalink(); echo do_shortcode('[LoginRadius_Share url="' . $link . '"]');
I’d be truly grateful for any help you may offer.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Different URL for shared link.’ is closed to new replies.