How To Make Your WordPress Blog IE8 WebSlice Ready
With a recent release of IE 8 came a new feature called Web-Slices, that lets you monitor updates from your favorites right from the favorite toolbar in a drop-down menu rather than having a visit to the site.
If you have a self-hosted weblog on WordPress, to make your WordPress weblog IE8 WebSlice Enable create a php (for ex. ie-webslices.php) file with the following code and save it.
<html><head>
<title>Page Title</title>
</head><body>
<div class="hslice" id="1">
<h2 class="entry-title">Your Site Name</h2>
<div class="entry-content"><ol>
<?php
require_once('wp-load.php');
$results = $wpdb->get_results("SELECT post_title, guid
FROM $wpdb->posts where post_status = 'publish'
ORDER BY ID DESC LIMIT 5");
foreach($results as $row) {
echo "<li><a href='".$row->guid . "'>"
. $row->post_title ."</a></li> \n";
}
?>
</ol></div></div>
</body></html>
Via – Digital Inspiration
Now when anyone using IE 8 subscribes to your feed they will be able to receive updates from the favorites toolbar.
To See how IE 8 webslices work and the above code in action watch this video
Via – Digital Inspiration








