A function() for use in shortening URL links. This plugin is meant for dev work and does not automatically shorten URLs.
As of April 2026, Absolute-to-Relative URLs is a WordPress link plugin with 20 active installations and a 5/5 rating from 2 reviews. It has been downloaded 7.0K+ times in total. Requires WordPress 3.2+ and PHP false+. Available on WordPress.org since 2011. Last updated 13 years ago — may have compatibility concerns. Top alternative: Custom Post Type Permalinks.
If you were to use this on a website like http;//example.com/test/testing/, you would get results like these:
$output_type=1): ../../#anchorAll string parsing. No directory browsing.
If you’re looking for a plugin that will automatically convert all URLs on your WordPress site, instead check out my other plugin, WP-HTML-C…
| WordPress | 3.2+ requiredTested up to 3.4.2 |
| PHP | false+ required |
"#") are no longer invalidated to "/"Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.