Deze plugin is niet getest met de laatste drie grote versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Er kunnen ook compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Redirect by Custom Field

Beschrijving

Sometimes you have a need for having links to external URLs show up interspersed among your own pages or posts. This plugin lets you easily create such “redirecting” posts or pages by simply setting a custom field.

Usage: Add the custom field with label “redirect” to any post or page. Enter the redirect target URL as the value of that custom field. Now all links on your site to that post or page will be replaced with that redirect URL! If you try to visit the permalink URL for that page, it will redirect the user to that redirect URL too.

This plugin actually also works fine to redirect a URL to another URL on the same site as well.

Placeholders: New in version 0.9: the strings %home% and %site% in URLs are replaced by the WordPress home URL and site URLs, respectively.

Development of this plugin was supported by the Arts at MIT.

FAQ

If your question isn’t here, ask your own question at the WordPress.org forums. Please do not email or tweet with questions.

Beoordelingen

3 september 2016
Works Perfectly and surely its a powerful plugin for affiliates. It simply work with wp-all-import which you can promote millions of products from various affiliate networks like cj,shareasale,tradetracker zanox and more.
Lees alle 5 beoordelingen

Bijdragers & ontwikkelaars

“Redirect by Custom Field” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Vertaal “Redirect by Custom Field” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.0

  • Added new “hide redirects” filter in the list of posts/pages.

0.9

  • New placeholder function:
    • %home% and %site% in URLs are replaced by the WordPress home URL and site URLs, respectively.
    • New filter redirect_by_custom_field_placeholders to add or modify placeholders.

0.8

  • Removed inappropriate esc_url which was messing up some redirects.
  • New user-definable constant REDIRECT_BY_CUSTOM_FIELD_HTTP_STATUS.

0.7

  • Rewritten to use the template_redirect action instead, which catches some edge cases.

0.6

  • WordPress’s own permalinks in the WordPress admin now are actually displayed, together with the redirect URL.

0.5

  • Fixed a potential PHP warning
  • Fixed an error in the query filter

0.4

  • Fixed redirect in some direct URL access cases
  • Properly sanitizes redirect URLs

0.3

  • First public release