WordPress.org

Plugin Directory

Shortcode Redirect

Shortcode Redirect

תיאור

Shortcode Redirect sends visitors from any post or page to another URL. No settings screens, no database tables — just drop it in where you need it.

There are two ways to use it, and both produce the exact same front-end output.

1. The Redirect block (new in 1.1.0)

In the block editor, add the Redirect block from the Widgets category. The block sidebar exposes three simple fields:

The editor shows a live summary of what the block will do, e.g. "Redirects to https://example.com — after 3 seconds · message shown". No shortcode syntax to memorize.

2. The classic shortcode

Paste into any post or page:

[redirect url='https://example.com' sec='3']

Shortcode attributes:

Example with all three:

[redirect url='https://example.com' sec='5' show_message='false']

Same output either way

Block or shortcode, the front-end renders the same single <meta http-equiv="refresh"> tag (plus the optional one-line message). No JavaScript. No server-side redirect. No third-party tracking. Existing [redirect] shortcodes from earlier versions continue to work unchanged.

תכונות

צילומי מסך

בלוקים

תוסף זה מספק בלוק 1.

Redirect Redirect visitors to another URL after an optional delay.

התקנה

  1. Install from the WordPress Plugin Directory, or upload shortcode-redirect.zip to /wp-content/plugins/.

  2. Activate the plugin through the Plugins menu.

  3. Either:

    • Add the Redirect block to any post/page (block inserter Widgets Redirect), or
    • Paste [redirect url='https://example.com' sec='3'] into any post/page.

No configuration screen to visit — the plugin activates and is immediately usable.

שאלות נפוצות

How do I hide the "Please wait while you are redirected…" message?

In the block: toggle off Show "redirecting" message in the block sidebar.

In the shortcode: add show_message='false' (also accepts 0, no, or off):

[redirect url='https://example.com' sec='3' show_message='false']

Do the block and the shortcode behave the same?

Yes. Both render the same <meta http-equiv="refresh"> tag on the front-end. Same delay handling, same message toggle, same output.

Can I mix blocks and shortcodes on the same site?

Absolutely. Use whichever fits the page you're editing. Pages built with the old [redirect] shortcode keep working when you upgrade — no migration required.

Does this require JavaScript in the visitor's browser?

No. The redirect is a plain HTML <meta http-equiv="refresh"> tag. It works with JavaScript disabled, in text browsers, and inside reader modes.

Can I use this in a Reusable Block / Synced Pattern?

Yes — the Redirect block supports reuse, so you can save a configured redirect once and drop it anywhere.

סקירות

9 באפריל 2024
Just wish there was an option to open in a new tab. Work around was to open the redirected page in a new tab instead.
24 באוגוסט 2023
It is simple and easy to use. Just wish the text wasn't showing on the frontend. But it is an easy fix so I give it a 5 stars! Thank you for making this plugin!
19 בינואר 2022
Pluginnya berfungsi, semoga kedepannya ada pengaturan opsi lebih lanjut (sorry i write in indonesian bahasa)
19 באוגוסט 2020
Using Wordpress v5.5 As far as I can tell this plugin still works. Very easy to set up.
קראו את כל 31 הסקירות

מפתחים

"Shortcode Redirect" הוא תוסף קוד פתוח. האנשים הבאים תרמו ליצירת התוסף הזה.

תורמים

ניתן לתרגם את "Shortcode Redirect" לשפה שלך.

מעוניינים בפיתוח?

עיינו בקוד, ראו את הקוד ב-SVN repository, או הירשמו ללוג פיתוח באמצעות RSS.

שינויים

1.1.2

1.1.1

1.0.4

1.0.03

1.0.02

1.0.01

1.0.00

מטא

דרוגים

4.3 out of 5 stars.

תורמים

תמיכה

יש לך משהו לומר? זקוק לעזרה?

פורום תמיכה