subscribe

You can update this text in your control panel, under Theme Options. Nam massa. Ut tempor augue non sapien lobortis aliquam. Maecenas.

Social Media

WordPress › Increase Sociability « WordPress Plugins

Friday, April 2nd, 2010

A plugin to present different messaging to visitors from different sites, such as Stumbleupon and Digg. With this plugin you can ask that visitors recommend your content if they like it.

WordPress › Increase Sociability « WordPress Plugins.

Dynamic Facebook Share for Wordpress

Monday, November 16th, 2009

Here’s the code for integrating Facebook Share with Wordpress (i.e. you want users to be able to post your pages on facebook and you want to control what gets posted).

//Dynamic title

<?php
if (is_front_page()) {
echo ‘<meta name=”title” content=”HOME TITLE” />’;
} else {
echo ‘<meta name=”title” content=”‘;
wp_title(”,true,”);
echo ‘” />’;
}
?>

//Dynamic thumbnail using Press 75 Simple Thumbnail plugin

<?php
if (is_single()) {
if ( p75HasThumbnail($post->ID) ) {
echo ‘<link rel=”image_src” href=”‘;
echo p75GetThumbnail($post->ID, 200, 125);
echo ‘” />’;
}
} else {
echo ‘<link rel=”image_src” href=”URL TO HOME THUMBNAIL“>’;
}
?>

//Dynamic description using post excerpt

<?php if (is_single()):while(have_posts()):the_post();
echo ‘<meta name=”description” content=”‘;
$out_excerpt = str_replace(array(”\r\n”, “\r”, “\n”), “”, get_the_excerpt());
echo apply_filters(’the_excerpt_rss’, $out_excerpt);
echo ‘” />’;
endwhile;
endif;
?>

Happy Facebook sharing!