tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

WordPress Link Shortener: Short, Branded Links From Any Workflow

FlowMattic Link Shortener module: a newly published post's long URL becomes a short link that goes straight into a social post.

A WordPress link shortener is most useful when nobody has to remember to use it. FlowMattic’s Link Shortener module turns any long URL into a short fmtk.in link as a workflow step, so a new post, an order or a booking can arrive in an SMS, a social post or a printed QR code with a link that fits.

You can also use your own branded domain, such as go.example.com, so short links carry your name instead of a generic one.

What is the Link Shortener?

Link Shortener is a built-in action app in the FlowMattic workflow builder with one action, Shorten URL: “Shorten a long URL using fmtk.in (Intended to provide convenience, not security).” It sits with the other data tools in the app picker.

The step sends the long URL to FlowMattic’s fmtk.in service and returns the short link. It needs an active FlowMattic license; without one, the step stops with a message asking you to activate or renew.

How the WordPress link shortener works

  1. Add a step after your trigger and choose Link Shortener, action Shorten URL.
  2. In URL to Shorten, map the long URL, such as a post permalink or a tracking page.
  3. Optionally enter Custom Domain (Optional), for example go.example.com.
  4. Test the step. Map short_url into the message, post or record that follows.
FlowMattic workflow builder showing the Link Shortener step with the Shorten URL action, URL to Shorten and Custom Domain (Optional) fields.
The Link Shortener step with the URL to Shorten field mapped and an optional custom domain.

Fields and output

FieldWhat it does
URL to ShortenThe long URL. Required, and it must be a complete, valid URL including https://; otherwise the step returns “Invalid URL format provided.”
Custom Domain (Optional)Your own short domain. The step swaps fmtk.in in the short link for this domain. Leave it empty to use fmtk.in.

On success the step returns status, long_url and short_url. On failure it returns status: error with an error message you can catch with a Filter or Router.

Setting up a custom domain

The step only rewrites the domain in the link it returns, so your domain has to point at the shortener first. The custom domain setup guide, linked from the step, walks through it: add a CNAME record for a subdomain such as go pointing to fmtk.in, wait for DNS to update, and, if you use Cloudflare, set SSL/TLS to Full. Then enter the subdomain in the step and run a test to check the link opens.

Use cases

Share every new post with a short link

When a post is published, shorten its permalink and send it to your social channels, where a compact link reads better.

WordPress: new post → Link Shortener → Social post

Fit order tracking links into SMS

Carrier tracking URLs are long. Shorten the link before an order update goes out by SMS so the message stays short and readable.

WooCommerce: order status changed → Link Shortener → SMS

Branded links for agency clients

Agencies can give each client their own short domain and keep it in the step’s Custom Domain field, so links in campaign reports and newsletters carry the client’s brand.

Scheduler → API request (report links) → Iterator → Link Shortener → Email report

Short links on printed QR codes

A shorter URL produces a less dense QR code. Shorten a campaign URL first, then turn it into a QR code for a flyer or poster.

Form submission → Link Shortener → QR Generator → Email to designer

Campaign links with UTM tags

Add UTM parameters to the landing page URL with the Text Formatter, then shorten the result. Your analytics tool attributes the visits, and the link stays tidy in the message.

New campaign row → Text Formatter → Link Shortener → WP Tables: update row

Neater links in support replies

When a support workflow suggests a help article, shorten the article URL before it goes into a chat or WhatsApp reply.

Webhook (new ticket) → AI Agent: pick article → Link Shortener → Send reply

Tips and gotchas

  • Convenience, not security. The step itself warns: do not shorten links to sensitive or private content. Keep magic login links, password resets and private documents as full URLs.
  • Valid URLs only. Include the scheme. example.com/page fails; https://example.com/page works.
  • Configure DNS before the custom domain. The step rewrites the domain whether or not your DNS is ready, so a link on an unconfigured domain won’t open. Test it once after setup.
  • Store links you reuse. Each run calls the shortener again. If the same URL is shared many times, save short_url once in a table and reuse it.
  • No click counts in the step. The step returns the short link only. To measure visits, add UTM parameters before shortening and read them in your analytics.
  • License required. The step only runs on a site with an active license.

Related features

FAQ

Can I use my own domain for short links?

Yes. Point a subdomain at fmtk.in with a CNAME record, then enter it in Custom Domain (Optional). The short links returned by the step will use your domain.

Do I need a separate URL shortener account?

No. The Link Shortener is built into FlowMattic and uses fmtk.in with your active FlowMattic license. There is no extra API key to add.

How do I shorten links automatically when I publish a post?

Start a workflow with the WordPress new post trigger, add the Link Shortener step with the post permalink in URL to Shorten, and send short_url to wherever you share posts.

Can I see how many people clicked a short link?

The step doesn’t return click statistics. Add UTM parameters to the destination URL before shortening and measure the visits in your analytics tool.

A WordPress link shortener that runs inside your workflows saves a manual step on every post and message. See the FlowMattic plans to get started.

More from the blog