Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

New WP Plugin - Macro Root URI

TrackBack | Filed by Thomas under Plugins, WordPress | Post popularity 7%

I’ve currently been working on an update for one of the companies websites. The whole site runs on WordPress, my “new” favourite CMS. However, before going live the site is running on a different location than when ready. I noticed that the import/export feature doesn’t change the URI’s inside the posts and pages. Concequently I needed something to make the “move” as quick and automatic as possible.

Inspired by Alex King’s “Shortcut Macros” plugin I decided to make something similar that would convert any root URI references with a macro, ##root to be specific. To illustrate lets say your domain is http://www.example.com. So whenever you write or update a page/post the following will happen ;

http://www.example.com/link/to/page_or_post -> ##root/link/to/page_or_post

When viewing the page the plugin will automatically reconvert #root to your blogs URI as defined by get_option(’home’). This way your internal links will always be uptodate wherever you move your blog.

Grab the code and instructions from the download page.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments

No comments yet.

Leave a Comment

Akismet has protected Blogvaria from 80,391 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 3.417 pages so far today, an amazing 5.051 pages yesterday
and even more astonishingly 225.586 pages since 18 October 2008 alone without dropping a byte nor a pixel.

Close
E-mail It