sandywp / plugins / yourls-link-creator

YOURLS Link Creator

4.5 out of 5 stars. 4.5 13 reviews

Creates a custom short URL when saving posts. Requires your own YOURLS install.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v2.1.1 500+ installs WP 3.6+

your-sandbox.sandywp.com/wp-admin
YOURLS Link Creator running inside a SandyWP sandbox

What you get inside

4 screens
  • Metabox to create YOURLS link with optional keyword field

  • Example of a post with a created link and click count

  • Post column displaying click count

  • Settings page

About this plugin

Creates a YOURLS generated shortlink on demand or when saving posts.

Features:

  • Optional custom keyword for link creation.
  • Will retrieve existing URL if one has already been created.
  • Click count appears on post menu
  • Available for standard posts and custom post types.
  • Optional filter for wp_shortlink
  • Built in cron job will fetch updated click counts every hour.

Questions

What’s this all about?

This plugin creates a shortlink (stored in the post meta table) for each post that can be used in sharing buttons, etc.

What is YOURLS?

YOURLS is a self-hosted PHP based application that allows you to make your own custom shortlinks, similar to bit.ly and j.mp. Learn more about it here

How do I use the template tag?

Place the following code in your theme file (usually single.php) <?php yourls_display_box(); ?>

The delete function doesn’t remove the short URL from my YOURLS installation

This is a limitation with the YOURLS API, as there is not a method yet to delete a link. The delete function has been added to the plugin to allow users to get the updated URL that they may have changed in the YOURLS admin panel

4.5

13 reviews

  • 5 ★ 11
  • 4 ★ 0
  • 3 ★ 1
  • 2 ★ 0
  • 1 ★ 1

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

  • Custom Permalinks

    4.1 · 100K+ installs

    A powerful WordPress plugin for full URL control. Set custom permalinks, auto-redirects, and use dynamic tags for ideal site…

  • WP Custom Author URL

    5.0 · 4K+ installs

    Set a custom URL for your author name link, on a global or author-specific basis. Also redirects all author pages.

  • Custom Permalink Editor

    5.0 · 4K+ installs

    Set Custom Permalink Editor on a per-post, per-tag per-page, and per-category basis.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.