Written by Zealus on November 10, 2008 – 3:13 pm -
As I have just figured out after some of the upgrades the external link in the title hack was, indeed, broken. In fact, I am somewhat puzzled, as it worked on some of my installations and didn’t work on others.
It turns out that the method of obtaining the permalink for the post is returning the canonical URI no matter what permalink system has been set up (I use custom on this blog). For example, even if you have something SEO-friendly, the code
$permĀ = $post_id->guid;
would still return http://www.istudioweb.com/?p=427 as a link to this post. The right way of doing it now (before WP 2.7 arrives) is change the above line to:
$permĀ = get_permalink($post_id);
That’s it. Should work.
P.S. Updated the downloadable txt file. Click here to view.
Feel free to share the content:
Tags:
experiment,
hacking,
wordpress
You might also be interested in reading this:
Hacking WordPress theme - external URL for post title (January 12, 2008): Sometimes something weird happens - I demand something that isn't available. With software it's easy (that's how I got into computers), you dig in the code and you tweak and hack around until it does what you want.
When I just started this blog on Blogger quite a while ago, there was this feature that allowed [...]
Zoundry Blog Editor (January 15, 2008): While contemplating on my ideas of blogging editor I stumbled upon various reviews of existing blogging clients. One of them caught my eye, so I ventured ahead and downloaded Zoundry - free blogging client. I am attempting to write this post in Zoundry, version 1.0.40.
Generally, I am not looking for features I came up with [...]
WordPress 2.3 upgrade (October 30, 2007): Apparently upgrade to WP 2.3 is much more problematic then I thought. Even though I updated the test blog first (didn't see any signs of trouble), the upgrade of this one left me without much liked plugin Ultimate Tag Warrior. Hopefully the developer will release an update soon...
Tags:
experiment,
hacking,
wordpressPosted in
Main |