AddThis Sharing Buttons
Share shortlink instead of long URL (1 post)

  1. kmc4637
    Posted 2 years ago #

    Hi there,

    I apologize in advance if the answer is here somewhere, but I am not having any luck finding it.

    I'm using a URL shortening service (YOURLS) that I have set up so that WordPress shortlinks are using it. I'd like AddThis to share the page's shortlink instead of the perma-link. In the addthis_share values field in Advanced Settings, I've tried the following:

        "url": "<?php echo wp_get_shortlink(); ?>"

    The validation is satisfied, but upon saving, the value is reduced to simply: { "url": "" }

    How can I share shortlink codes if PHP code is not accessible in this field? Thanks in advance.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddThis Sharing Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic