04.14.10

Minor refresh

Was prepping a new banner inside PictBear, while browsing WordPress plugins. Then it was only WordPress plugin and theme browsing. I guess I spent my quota of attention in the working hours and saved none when I am home.

My fingers got itchy and installed a few themes, and here we are with a new look. The itch didn’t wear off, so there I was again in the plugins section, not founding what I wanted after a few trials. A short trip to mother Google landed me with Facebook Connect Plugin for WordPress, and the itches went away. There are still a few styling glitches with the theme that I will look into, but not tonight.

I did also installed WPtouch yesterday, so hopefully faster and slicker browsing for Android/iPhone/BlackBerry visitors. Next would be to move Facebook photos back to the site probably?

Tell me what you think. Other than the bare header :).

Good night.

04.7.10

Spring is around the corner

WordPress for Android updated with inter app sharing feature
image

02.27.10

Adding post permalink to WordPress feed

This is one way of adding the permalink of the post inside the contents of your WordPress feed, with minimal damage, by changing the theme files, instead of directly changing WordPress’ files. Basicly this method overrides the string used by WordPress, since we cannot define a custom feed template through themes because the feed templates are not included in WordPress theme structure.

This method fetches the permalink of the post and uses the add_filter function to prepend the contents of the feed. Add the following lines to the functions.php of your theme.


/* START : azamshul.com feeds */
function insertPostLink($content) {
global $wp_query;
$postlink = post_permalink($wp_query->post->ID);
$content = '(Go to the full post at <a href="'.$postlink.'">azamshul.com</a>)<br/><br/>'.$content;
return $content;
}
/* uncomment if you want to perform the same for the excerpt (short description) */
/* add_filter('the_excerpt_rss', 'insertPostLink'); */
add_filter('the_content_rss', 'insertPostLink'); /* the_content_rss deprecated in WordPress 2.9 */
add_filter('the_content_feed', 'insertPostLink'); /* WordPress 2.9 and above */
/* END : azamshul.com feeds */

See the changes in action on this site’s feed.

Mostly a self-note. Might be useful to others who googled for this.

*Updated, for WordPress 2.9 and above, where the_content_rss was replaced by the_content_feed.