WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cyborg4
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year 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:
    http://wordpress.org/extend/plugins/jetpack-shortlinks-for-sharing-buttons/

  3. cyborg4
    Member
    Posted 1 year 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
    Happiness Engineer
    Plugin Author

    Posted 1 year 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

About this Topic