Comments Redirect
Wordpress 2.x plugin which enables to see the number of comments for the posts linking to other pages on our blog (Redirectify plugin required).
Plugin installation:
- unpack in wp-content/plugins
- activate in Plugins tab
- alter the code in index.php template (or any other template you want):
comments_popup_link();to:
$redirect = get_post_meta($wp_query->post->ID, "redirect", true); if($redirect!='') comments_redirect_popup_link(); else comments_popup_link();
How does it work?
Well, the code is not very beautiful, actually. It uses a hack to achive the goal to be frank. What it does is checking whether the linked article (the value of special meta key called “redirect”) is within our blog. If so, it takes tha comments from that linked article (a static page usually) instead of the linking post. That’s all. Try it yourself if you like to or check how it works on PolishLinux.org – we often link to static pages using this plugin.

Polska wersja