Jetpack by WordPress.com
[resolved] Use custom URL shortener for Publicize (4 posts)

  1. cyborg4
    Posted 3 years ago #

    I want to use a custom URL shortener ( CoinURL ) for the Publicize function of Jetpack on my blog techkids.co.uk. How can I do this?


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    If you use a plugin like WP Bit.ly or YOURLS to customize shortlinks on your site, Publicize will use your custom short URLs.

    If you want to add these shortlinks to the sharing buttons, you can use this plugin:

  3. cyborg4
    Posted 3 years ago #

    But there is no custom URL plugin for CoinURL. However, I do have a PHP code snippet that changes all URLs on a page to CoinURL links, and an API. Will this help?

  4. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    The API should allow you to create a small plugin that will generate a short URL for each post, and hook into the get_shortlink filter. All WordPress shortlinks will then be replaced by your own custom shortlinks.

    You can have a look at the code of the 2 plugins I mentioned to get an idea of how to implement this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic