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.
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 |
Comments Off
Written by Zealus on September 3, 2008 – 1:49 pm -
At least once a week I get an e-mail about the WP theme hack I posted in January. Most of the people ask how to make the hack work in WP 2.5 and 2.6.
Here’s the simple answer - if you didn’t touch your theme (I didn’t) and if you have just upgraded the WordPress installation itself - then the hack should still work. The original post with instructions is here.
The proof is this post - look at the title and take note that link in the title leads to the main blog page, not to the post itself.
If something actually did went wrong, check the following:
- Your theme’s functions.php file or whatever the name of the file with theme’s functions is. It should still contain the code from the original post.
- Your theme’s index.php file or whatever the main index template file name is. It should have the original hack as outlined in the original post.
- Custom field - the new URL must be in the value field, whereas the custom field name should be url1 or whatever you made it to be.
Let me know if the damn thing is acting up again.
Tags:
experiment,
hacking,
wordpress
You might also be interested in reading this:
Hacking Wordpress - Link In The Title (update 2) (November 10, 2008): 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 [...]
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 |
1 Comment »
Written by Zealus on January 31, 2008 – 12:26 pm -
As a bad taste SEO techniques adopter a company called Sitelynx on behalf of the The Times (UK) was spamming media sites with links. Why would a reputable publication like The Times fall for black-hat SEO techniques is another story. What is interesting is that a report on Waxy.org looks like a breakdown to bootstrapping your web site. Well, at least a part of it. Comments give an idea what was done wrong, what worked and what didn’t. Very interesting indeed.
Last week I was participating in another experiment with Freshmeat.net. A lot of pages there have PR 3 and above, so it was naturally a good idea to comment away. However, moderators appear to be quite on guard, so most of the experimental posts and accounts went down the drain couple of days after the end.
Tags:
black hat seo,
experiment,
seo,
web site,
website traffic
You might also be interested in reading this:
Free Link Bait (January 18, 2008): Short and comprehensive guide - how to create a link bait on your site. Thanks to members of SitePoint and DigitalPoint forums this all have been gathered.
Put together a list of web resources (forums, blogs) that are relevant to your topic
Put together a good post or article or eBook or anything of the real value. [...]
ZenCart or osCommerce? (January 14, 2008): Elaborating on the previous post (WordPress or Joomla?), next often asked question that we at Zealus Web Design see is which shopping cart should one use?This one is just one notch easier. First - we already know that customer wants a shopping cart solution. Second - he is aware that whatever choice he makes is [...]
Zealus Linx Catalog (February 27, 2006): We have moved our link catalog that used to be located at top.zealus.com to it's own separate domain - wadv.net (We like to call it Web ADVert net). The idea behind it is that there will be three different types of links stored. Free (via redirect script), direct (plain paid and clients) and direct (preferred). [...]
Yahoo clicks aren`t clicking (March 12, 2007): Today I got a call from one of my clients asking me to check stats with him as he is seeing certain discrepancies in Overture reports. We went in and figured that the number of clicks reported by Overture roughly 3 times larger then what is being reported by AWstats. Upon contact, Yahoo/Overture issued a [...]
Tags:
black hat seo,
experiment,
seo,
web site,
website trafficPosted in
seo |
Comments Off