<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WP Garage &#187; Rebecca Markowitz</title>
	<atom:link href="http://wpgarage.com/author/Rebecca/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Fri, 15 Mar 2013 11:32:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Hack: How to use Jetpack&#8217;s ShareDaddy plugin without connecting to WordPress.com</title>
		<link>http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com</link>
		<comments>http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/#comments</comments>
		<pubDate>Wed, 30 Jan 2013 07:50:19 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jetpack]]></category>
		<category><![CDATA[sharedaddy]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1657</guid>
		<description><![CDATA[<p>ShareDaddy was a great social sharing plugin. And then it was integrated into Auttomatic&#8217;s Jetpack which required connecting our clients&#8217; sites to a WordPress.com account which was majorly awkward&#8230; since our clients don&#8217;t have a WordPress.com account (you can read more about our feelings on Jetpack here). So, we went off to find a substitute and [...]</p><p>This post was originally published at <a href="http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/">Hack: How to use Jetpack&#8217;s ShareDaddy plugin without connecting to WordPress.com</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/" data-url="http://illum.in/WuZsAQ" data-text="Hack: How to use Jetpack&#8217;s ShareDaddy plugin without connecting to WordPress.com" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fplugins%2Fhow-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/"></g:plusone></div></div><p><a href="http://wordpress.org/extend/plugins/sharedaddy/">ShareDaddy</a> was a great social sharing plugin. And then it was integrated into Auttomatic&#8217;s <a href="http://wordpress.org/extend/plugins/jetpack/">Jetpack</a> which required connecting our clients&#8217; sites to a WordPress.com account which was majorly awkward&#8230; since our clients don&#8217;t have a WordPress.com account (<a href="http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/">you can read more about our feelings on Jetpack here</a>). So, we went off to find a substitute and after reading all the &#8220;Top 1 Million Sharing Plugins&#8221; posts we still felt at a loss for a normal, nice-looking, easy-to-use social sharing plugin.</p>
<p>And then <a href="http://maorchasen.com">Maor</a> discovered that there was a way to hack Jetpack to use ShareDaddy without connecting it to a WordPress.com account.</p>
<p>Here&#8217;s how:</p>
<ol>
<li><span style="line-height: 13px;">Donwload Jetpack but <strong>don&#8217;t activate it</strong>. You won&#8217;t need to activate Jetpack because it will be run from the mu-plugin you&#8217;re about to create in step#2.</span></li>
<li>Create a file called jetpack-sharedaddy.php and put it in the mu-plugins directory or create a mu-plugins folder if it doesn&#8217;t already exist. More info on creating <a href="http://codex.wordpress.org/Must_Use_Plugins">mu-plugins</a> can be found in the WordPress Codex.<br />
<a href="http://wpgarage.com/wp-content/uploads/2013/01/muplugins.png"><img class="alignnone size-full wp-image-1666" alt="muplugins" src="http://wpgarage.com/wp-content/uploads/2013/01/muplugins.png" width="205" height="112" /></a></li>
<li>Add the following code into
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jetpack-sharedaddy.php</div></div>
<p> (The original code is <a href="http://vip.wordpress.com/documentation/development-environment/#jetpack">here</a>). We also added in code to remove the massive Jetpack banner message that tells you to connect with WordPress.com even though the Jetpack plugin is deactivated.</p>
<div id="attachment_1703" class="wp-caption alignnone" style="width: 463px"><a href="http://wpgarage.com/wp-content/uploads/2013/01/jetpack.png"><img class=" wp-image-1703   " alt="Looks small here... but you know it's massive in the Dashboard!" src="http://wpgarage.com/wp-content/uploads/2013/01/jetpack.png" width="453" height="43" /></a><p class="wp-caption-text">Looks small here&#8230; but you know it&#8217;s massive in the Dashboard!</p></div>
<p>&nbsp;</p><pre class="crayon-plain-tag">&lt;?php 

function hack_jetpack_offline_mode() {
	if ( ! file_exists( WP_PLUGIN_DIR . &#039;/jetpack/&#039; ) || class_exists( &#039;Jetpack&#039; ) )
		return;

	require_once( WP_PLUGIN_DIR . &#039;/jetpack/jetpack.php&#039; );

	// Disable Jetpack&#039;s notification messages
	hack_disable_jetpack_notices();

	// List of modules we&#039;d like to activate
	$modules = array(
		&#039;sharedaddy&#039;,
	);

	foreach ( $modules as $module ) {
		require Jetpack::get_module_path( $module );
		do_action( &#039;jetpack_module_loaded_&#039; . $module );
	}
}
add_action( &#039;plugins_loaded&#039;, &#039;hack_jetpack_offline_mode&#039;, 99 );

function hack_disable_jetpack_notices() {
	global $jetpack_hijacked_instance;

	// Hijack Jetpack&#039;s instance (which usually gets lost in global space)
	$jetpack_hijacked_instance = Jetpack::init();

	// Remove responsible functions
	add_action( &#039;admin_init&#039;, &#039;hack_shut_off_notices_for_jetpack&#039;, 20 );
	// Ensures Jetpack&#039;s top level menu doesn&#039;t show up. Remove line to display.
	add_action( &#039;admin_menu&#039;, &#039;hack_remove_jetpac_menu&#039;, 999 );
}

function hack_shut_off_notices_for_jetpack() {
	global $jetpack_hijacked_instance;

	remove_action( &#039;load-index.php&#039;, array( $jetpack_hijacked_instance, &#039;prepare_connect_notice&#039; ) );
	remove_action( &#039;load-plugins.php&#039;, array( $jetpack_hijacked_instance, &#039;prepare_connect_notice&#039; ) );
}

function hack_remove_jetpac_menu() {
	remove_menu_page( &#039;jetpack&#039; );
}</pre><p>&nbsp;</li>
<li>Back in the Dashboard, you can go to Settings &gt; Sharing and use ShareDaddy!</li>
</ol>
<p>Here is a screenshot of the final sharing icons using the Icon+Text setting which shows the number of shares, tweets, etc in a really pretty, nicely spaced format, as opposed to awkwardly spaced out and massive in-your-face buttons that I usually see around the web!</p>
<p><img class="alignnone size-full wp-image-1664" alt="sharedaddywpg" src="http://wpgarage.com/wp-content/uploads/2013/01/sharedaddywpg.png" width="270" height="26" /></p>
<p>&nbsp;</p>
<p><strong>PS: One more small, but useful tip:</strong> Since Jetpack is deactivated, someone might think, &#8220;Hey, we&#8217;re not using this plugin, let&#8217;s remove it.&#8221; Since that would be quite the catastrophe, we&#8217;re using a plugin called <a href="http://wordpress.org/extend/plugins/plugin-notes/">Plugin Notes</a> to write a note on the plugin page that says &#8220;DO NOT REMOVE&#8221;. Here&#8217;s a screenshot:</p>
<p><a href="http://wpgarage.com/wp-content/uploads/2013/01/donotremove.png"><img class="alignnone  wp-image-1711" alt="donotremove" src="http://wpgarage.com/wp-content/uploads/2013/01/donotremove.png" width="566" height="71" /></a></p>
<p>&nbsp;</p>
<p>This post was originally published at <a href="http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/">Hack: How to use Jetpack&#8217;s ShareDaddy plugin without connecting to WordPress.com</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/plugins/how-to-use-jetpacks-sharedaddy-without-connecting-to-wordpress-com/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to list WordPress Users (Editors and Authors) by role and then alphabetical by last name</title>
		<link>http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name</link>
		<comments>http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 18:56:05 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[alphabetical]]></category>
		<category><![CDATA[Authors]]></category>
		<category><![CDATA[editors]]></category>
		<category><![CDATA[last name]]></category>
		<category><![CDATA[role]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1626</guid>
		<description><![CDATA[<p>For one of our clients, we needed to list all the users on the site, first by role, and then within that role, alphabetized by last name. Each user needed to display the author&#8217;s name (First Name, Last Name), the author&#8217;s photo (using the User Photo plugin), and some author meta information, as follows: Editors: Stan [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/">How to list WordPress Users (Editors and Authors) by role and then alphabetical by last name</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/" data-url="http://illum.in/VL2CQS" data-text="How to list WordPress Users (Editors and Authors) by role and then alphabetical by last name" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fcode-snippets%2Fhow-to-list-wordpress-users-by-role-then-alphabetical-by-last-name%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/"></g:plusone></div></div><p>For one of our clients, we needed to list all the users on the site, first by role, and then within that role, alphabetized by last name. Each user needed to display the author&#8217;s name (First Name, Last Name), the author&#8217;s photo (using the <a href="http://wordpress.org/extend/plugins/user-photo/">User Photo</a> plugin), and some author meta information, as follows:</p>
<p><strong>Editors:</strong></p>
<p style="padding-left: 30px;"><strong>Stan Smith</strong> (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p style="padding-left: 30px;"><strong>John Tmith</strong> (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p style="padding-left: 30px;"><strong>Abe Zmith</strong>  (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p><strong>Authors:</strong></p>
<p style="padding-left: 30px;"><strong>Mary Smith</strong> (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p style="padding-left: 30px;"><strong>Ann Tmith</strong> (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p style="padding-left: 30px;"><strong>Sarah Zmith</strong>  (links to Author&#8217;s archive using the author.php archive)<strong><br />
</strong>Bio/Description<br />
Email<br />
Website</p>
<p>Here&#8217;s the code we used to accomplish this.</p>
<h2>Step 1: <strong>In functions.php, add the following code:  </strong></h2>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> illuminea_list_users<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$blogusers</span> <span style="color: #339933;">=</span> get_users<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'blog_id=1&amp;amp;orderby=nicename&amp;amp;role=author'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$editors</span> <span style="color: #339933;">=</span> get_users<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'blog_id=1&amp;amp;orderby=nicename&amp;amp;role=editor'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$editors</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-holder&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;visual&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>?php <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>userphoto_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #004000;">userphoto</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-block&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>?php <span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;h2&gt;&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>display_name <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/h2&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;bio&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>description <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;email&quot;&gt;&lt;strong&gt;Email: &lt;/strong&gt;&lt;a href=&quot;mailto'</span> <span style="color: #339933;">.</span> &nbsp;<span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_email &nbsp;<span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_email <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;url&quot;&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><br />
<br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!--</span>?php <span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$blogusers</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'author'</span> <span style="color: #339933;">!=</span> <a href="http://www.php.net/array_pop"><span style="color: #990000;">array_pop</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>roles<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
<span style="color: #b1b100;">continue</span><span style="color: #339933;">;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post-holder&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;visual&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>?php <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>userphoto_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #004000;">userphoto</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text-block&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>?php <span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;h2&gt;&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_author_posts_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>display_name <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/h2&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;bio&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>description <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;email&quot;&gt;&lt;strong&gt;Email: &lt;/strong&gt;&lt;a href=&quot;mailto'</span> <span style="color: #339933;">.</span> &nbsp;<span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_email &nbsp;<span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_email <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'<br />
&lt;div class=&quot;url&quot;&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>user_url <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;/div&gt;<br />
'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><br />
<br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;</span>div style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;clear: both; margin: 10px 0;&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span><br />
<span style="color: #339933;">&lt;!--</span>?php <span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<h2><strong>Step 2: In the Researchers.php Page Template, add the following code:</strong></h2>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;!--</span>?php <span style="color: #339933;">&lt;</span>br ?<span style="color: #339933;">--&gt;</span> <span style="color: #666666; font-style: italic;">/*<br />
Template Name: Researchers Template<br />
*/</span><br />
get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> illuminea_modify_user_query<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$q</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span><br />
remove_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pre_user_query'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'illuminea_modify_user_query'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$q</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>query_orderby <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ORDER BY <span style="color: #006699; font-weight: bold;">$wpdb</span>-&amp;gt;usermeta.meta_value ASC&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$q</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>query_where <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;WHERE 1=1 AND <span style="color: #006699; font-weight: bold;">$wpdb</span>-&amp;gt;usermeta.meta_key = 'last_name'&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pre_user_query'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'illuminea_modify_user_query'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span><br />
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></div></div>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/">How to list WordPress Users (Editors and Authors) by role and then alphabetical by last name</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-list-wordpress-users-by-role-then-alphabetical-by-last-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Add a custom style to any WordPress widget with a plugin</title>
		<link>http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin</link>
		<comments>http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/#comments</comments>
		<pubDate>Sun, 12 Aug 2012 12:08:13 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1577</guid>
		<description><![CDATA[<p>The Problem On a WordPress site that we recently built, there were several text widgets in use &#8211; one for About Us, one for a Facebook Social Plugin, and one for a newsletter signup form. The problem was that we wanted each one of these text widget areas to be styled slightly differently &#8211; some [...]</p><p>This post was originally published at <a href="http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/">HOWTO: Add a custom style to any WordPress widget with a plugin</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/" data-url="http://illum.in/RDlzlK" data-text="HOWTO: Add a custom style to any WordPress widget with a plugin" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fplugins%2Fhowto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/"></g:plusone></div></div><h2>The Problem</h2>
<p>On a WordPress site that we recently built, there were several text widgets in use &#8211; one for About Us, one for a Facebook Social Plugin, and one for a newsletter signup form.</p>
<p>The problem was that we wanted each one of these text widget areas to be styled slightly differently &#8211; some with a border, and some without, some with more padding, and some with less. Unfortunately, all the text widgets for the sidebar come with the same CSS style &#8220;.textwidget&#8221; by default. This isn&#8217;t so helpful if you want to style each text widget separately.</p>
<h2>The Solution</h2>
<p>An amazing plugin called <a href="http://wordpress.org/extend/plugins/widget-css-classes/">Widget CSS Classes</a> gives you the ability to add custom style classes and ids to your WordPress widgets.</p>
<p><img title="widgetcssclass" src="http://wpgarage.com/wp-content/uploads/2012/08/widgetcssclass.png" alt="" width="291" height="208" /></p>
<p>All you have to do is install and activate the plugin. Then, go to the widget you want to target directly in the CSS, and add your very own CSS class to the widget!</p>
<p>Here are some more features that the plugin offers:</p>
<ul>
<li>You can specify multiple classes by putting a space between them</li>
<li>Optionally adds a dropdown menu with predefined classes instead of a text field</li>
<li>Optionally adds a text field to add an id to a widget</li>
<li>Adds first and last classes to the first and last widget instances in a sidebar</li>
<li>Adds even/odd classes to widgets</li>
<li>Adds number classes to widgets</li>
<li>Fully translatable</li>
<li>Multi-site compatible</li>
<li>Compatible with Widget Login plugin</li>
<li>Has filters and hooks for customizing output including class names</li>
</ul>
<p>This post was originally published at <a href="http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/">HOWTO: Add a custom style to any WordPress widget with a plugin</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/plugins/howto-add-a-custom-style-to-any-wordpress-widget-with-a-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jetpack WordPress plugin &#8211; The new comments and image carousel features almost make me want to use it</title>
		<link>http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-jetpack-plugin-comments-carousel</link>
		<comments>http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/#comments</comments>
		<pubDate>Sun, 22 Jul 2012 05:34:05 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[jetpack]]></category>
		<category><![CDATA[native photo gallery]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1463</guid>
		<description><![CDATA[<p>WordPress.com has limited flexibility and functionality in many ways. For example, you can&#8217;t add plugins, and you have to sign up to a paid upgrade in order to use ads. Even so, many of us who use and create self-hosted WordPress sites (with WordPress.org), have some serious FOMO when it comes to some of the built-in features at WordPress.com &#8211; [...]</p><p>This post was originally published at <a href="http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/">Jetpack WordPress plugin &#8211; The new comments and image carousel features almost make me want to use it</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/" data-url="http://illum.in/SO7qBL" data-text="Jetpack WordPress plugin &#8211; The new comments and image carousel features almost make me want to use it" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fplugins%2Fwordpress-jetpack-plugin-comments-carousel%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/"></g:plusone></div></div><p>WordPress.com has limited flexibility and functionality in many ways. For example, you can&#8217;t add <a href="http://en.support.wordpress.com/plugins/">plugins</a>, and you have to sign up to a paid upgrade in order to use <a href="http://en.support.wordpress.com/advertising/">ads</a>. Even so, many of us who use and create self-hosted WordPress sites (with WordPress.org), have some serious <a href="http://www.urbandictionary.com/define.php?term=fomo">FOMO</a> when it comes to some of the built-in features at WordPress.com &#8211; features that often don&#8217;t have a great alternative in the plugin directory. These features include a pretty photo gallery, comments which can be used by logging into social media profiles, and more.</p>
<p>With this in mind, in March 2011, <a href="http://automattic.com/">Auttomatic</a>, the company behind <a href="http://wordpress.com">WordPress.com</a>, released <a href="http://jetpack.me/about/">Jetpack</a>, a bundle of plugins inspired by WordPress.com.</p>
<p>The plugins included are:</p>
<ul>
<li><strong>WordPress.com Stats</strong>: Simple, concise site stats with no additional load on your server.</li>
<li><strong>Comments</strong>: enables your visitors to use WordPress.com, Twitter, or Facebook accounts when commenting on your site.</li>
<li><strong>Subscriptions</strong>: Allow users to subscribe to your posts and comments to receive a notification via email.</li>
<li><strong>Contact Form</strong>: Easily insert a contact form any where on your site.</li>
<li><strong>Sharing</strong>: The most super duper sharing tool on the interwebs. Share content with Facebook, Twitter, and many more.</li>
<li><strong>Spelling and Grammar</strong>: Improve your spelling, style, and grammar with the After the Deadline Proofreading service.</li>
<li><strong>Gravatar Hovercards</strong>: Show a pop-up business card of your users’ gravatar profiles in comments.</li>
<li><strong>Shortcode Embeds</strong>: Easily embed videos and more from sites like YouTube, Vimeo, and SlideShare.</li>
<li><strong>WP.me Shortlinks</strong>: Enable WP.me-powered shortlinks for all of your Posts and Pages for easier sharing.</li>
<li><strong>Beautiful Math</strong>: Mark up your posts with the markup language, perfect for complex mathematical equations and other über-geekery.</li>
<li><strong>Extra Sidebar Widgets</strong>: Easily add images, Twitter updates, and your site’s RSS links to your theme’s sidebar.</li>
<li><strong>Enhanced Distribution</strong>: Share your public posts and comments to search engines and other services in real-time.</li>
<li><strong>Carousel</strong>: Transform your standard image galleries into an immersize full-screen experience.</li>
</ul>
<div class="wp-caption aligncenter" style="width: 489px"><img title="deactivate" src="http://wpgarage.com/wp-content/uploads/2012/07/deactivate.png" alt="" width="479" height="202" /><p class="wp-caption-text">Jetpack&#8217;s user-friendly plugin dashboard. You can activate and deactivate each plugin separately.</p></div>
<h2>Hesitations</h2>
<p>We actually hadn&#8217;t used Jetpack yet because we have felt that the issues we see in the plugin outweigh the benefits to us. The way Jetpack is being provided to WordPress.org users opens a lot of questions for us. For example:</p>
<ul>
<li><strong>Why the bundling?</strong> Why is Auttomatic bundling so many random plugins together? What are the chances that someone who uses the pretty math equations will get excited about the Carousel and vice versa? And, are pretty math equations really in high demand at all?  Even though you can activate and deactivate individual plugins within Jetpack, the fact that you can&#8217;t just install individual plugins makes us uncomfortable.</li>
<li><strong>Why do you have to be signed into WordPress.com? </strong>Jetpack was created by Automattic, a for profit company behind WordPress.com. Why must we connect with a WordPress.com account in order to use all the plugins? Some plugins might need access to the site&#8217;s server in order to function but that is far from necessary for most of the plugins in Jetpack. Connecting our sites to third parties when unnecessary makes us uncomfortable.</li>
</ul>
<p><div class="wp-caption aligncenter" style="width: 472px"><img title="activate" src="http://wpgarage.com/wp-content/uploads/2012/07/activate.png" alt="" width="462" height="197" /><p class="wp-caption-text">Ugh! Don&#8217;t make me log in to a WordPress.com account.</p></div><br />
<div class="wp-caption aligncenter" style="width: 494px"><img class="   " title="jetpack" src="http://wpgarage.com/wp-content/uploads/2012/07/jetpack.png" alt="" width="484" height="63" /><p class="wp-caption-text">Subtle reminder to activate the plugin.</p></div></p>
<ul>
<li><strong>The bloat</strong>: 13 plugins for the free price of $0.00. Sounds like a delight to our consumer ears, but when it comes to WordPress plugins, I like them one at a time.</li>
<li><strong>Possible resource hog / slows speed of site: </strong>We read some negative reviews about Jetpack slowing down page load time. <a href="http://personal.amy-wong.com/2012/07/19/wordpress-jetpack-comment-slow-down-and-other-features/" target="_blank">Here is an example</a>.</li>
<li><strong>Added value?</strong> Initially we wondered what added value Jetpack could give to our sites &#8211; we were already using Google Analytics, <a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&amp;c=ib&amp;aff=180458">Gravity Forms</a>, ShareDaddy, and had no need for our (nonexistent) math equations to look beautiful.</li>
</ul>
<div>That is, until now. Recently, as of Jetpack version 1.5,  there are two new features that forced our skepticism to take a backseat and finally gave us a real reason to test drive Jetpack. </div>
<h2><strong>Comments Feature</strong></h2>
<p><strong></strong>Jetpack&#8217;s <a href="http://jetpack.me/support/comments/">comments feature</a>, released in June 2012, enables your visitors to use WordPress.com, Twitter, or Facebook accounts when commenting on your site. I love this idea because it allows visitors to your site to maximize their commenting potential by linking their comments to their homes online! However, I had two major issues using this feature.</p>
<ol>
<li>I couldn&#8217;t use the feature out of the box. I clicked activate but nothing happened in the comments area. Apparently, the plugin <a href="http://wordpress.org/support/topic/plugin-jetpack-by-wordpresscom-comments-not-shown">only works</a> with the comment_form() function so I had to go into my comments.php file and modify the function to get it to work.  </li>
<li>My other qualm is that the email, name, and website fields are hidden by default and only appear once you&#8217;ve clicked in the message area. Commenters want to tell you who they are &#8211; they want to leave their name and website when they comment and it&#8217;s very disorienting when they don&#8217;t see those fields immediately. I think commenters are used to a certain commenting structure which worked well. Like they say, if it ain&#8217;t broke, don&#8217;t fix it. I wanted to change the comments form so that by default it is always open, but I couldn&#8217;t find an option within Jetpack nor could I find anyone else even discussing that they have an issue with it, let alone a way to fix it.  </li>
</ol>
<p><div id="attachment_1475" class="wp-caption aligncenter" style="width: 459px"><img class=" wp-image-1475   " title="commentsclosed" src="http://wpgarage.com/wp-content/uploads/2012/07/commentsclosed.png" alt="" width="449" height="107" /><p class="wp-caption-text">Too minimalistic for me. Commenter fields are hidden by default.</p></div><br />
<div id="attachment_1474" class="wp-caption aligncenter" style="width: 459px"><img class=" wp-image-1474" title="commentsopen" src="http://wpgarage.com/wp-content/uploads/2012/07/commentsopen.png" alt="" width="449" height="289" /><p class="wp-caption-text">Once you click in the message area, you can see all the fields.</p></div></p>
<p><strong>An alternative</strong>: If you want an alternative stand-alone plugin for socially connected comments, try <a href="http://mailchimp.com/social-plugin-for-wordpress/">Mailchimp&#8217;s Social Plugin for WordPress</a>. </p>
<h2>Carousel Feature</h2>
<p>There has been a major lack of a good photo gallery and/or slideshow in WordPress.org for a long time. The native gallery has great potential for adding nice photo galleries to your site, but it&#8217;s still a long way off. Currently, when you insert a gallery into a page or post, and click on a thumbnail, it takes you to a bigger version of the image on a separate page. Not great. </p>
<p>Meanwhile, we&#8217;ve always looked at the image options at WordPress.com with a bit of jealousy. So, we were really excited to see Jetpack&#8217;s newest <a href="http://en.blog.wordpress.com/2012/07/12/around-the-carousel-again/#">carousel feature</a>, which turns the native WordPress photo gallery into a beautiful viewer.</p>
<p><img class="aligncenter" title="carousel" src="http://wpgarage.com/wp-content/uploads/2012/07/carousel.png" alt="" width="530" height="332" /></p>
<p>There are a couple of things that bother me about the new carousel. First, I don&#8217;t like the placement and size of the X for closing the viewer. In my experience, every single photo viewer has the closing X in the top right corner, but this carousel placed it in the top left corner, causing a nanosecond of helplessness before I figured out how to close it. And&#8230; why so <em>small</em>? </p>
<p>Second, I think it isn&#8217;t clear that when you click on a thumbnail you&#8217;ll get to a viewer. It&#8217;s possible that images should be lined up differently in order to make it clear that there is a slideshow view available.</p>
<p>I&#8217;ve created an example here of the carousel. Click on any of the thumbnails below to see the carousel for the native WP gallery in action:</p>

<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/deactivate/' title='deactivate'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/deactivate-150x150.png" class="attachment-thumbnail" alt="deactivate" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/jetpack2/' title='jetpack2'><img width="150" height="145" src="http://wpgarage.com/wp-content/uploads/2012/07/jetpack2-150x145.png" class="attachment-thumbnail" alt="jetpack2" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/jetpack/' title='jetpack'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/jetpack-150x150.png" class="attachment-thumbnail" alt="jetpack" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/activate/' title='activate'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/activate-150x150.png" class="attachment-thumbnail" alt="activate" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/carousel/' title='carousel'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/carousel-150x150.png" class="attachment-thumbnail" alt="carousel" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/commentsopen/' title='commentsopen'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/commentsopen-150x150.png" class="attachment-thumbnail" alt="commentsopen" /></a>
<a href='http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/attachment/commentsclosed/' title='commentsclosed'><img width="150" height="150" src="http://wpgarage.com/wp-content/uploads/2012/07/commentsclosed-150x150.png" class="attachment-thumbnail" alt="commentsclosed" /></a>

<p><strong>An alternative:</strong> <a href="http://wordpress.org/extend/plugins/carousel-without-jetpack/">Carousel without Jetpack:</a> A few days ago, <a href="http://www.wpbeginner.com/">WPBeginner</a> forked the Carousel module from Jetpack and offered it as a stand-alone plugin! And he says if Jetpack upgrades the feature, he&#8217;ll upgrade his plugin. Yay!</p>
<h2>Conclusions: A plugin for non-techy people?</h2>
<p>I wish I could see only the positive aspects in this plugin. WordPress.com is working hard to give out nice free plugins and with the newest Jetpack&#8217;s comments and carousel features, I am really tempted to start using it on <a href="http://illuminea.com/portfolio">our clients&#8217;</a> sites. But for now, I can&#8217;t bring myself to add 13 plugins to all their sites and I don&#8217;t want to have to connect WordPress.com accounts to use all of them! I wouldn&#8217;t even know which WordPress.com account to connect it to since our clients usually don&#8217;t have one and it feels weird to connect it to our account.</p>
<p>On the other hand, I wonder if maybe we aren&#8217;t the target audience for Jetpack. We are developers, creating custom sites from scratch. For us the plugin is bulky, providing unnecessary features and feeling possibly big brotherish. But maybe Jetpack opens up more options to lo-tech users of self-hosted WordPress sites who will love having the ability to install 13 plugins in one click.</p>
<p>Do you use Jetpack? What do you see as the pros and cons?</p>
<p>This post was originally published at <a href="http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/">Jetpack WordPress plugin &#8211; The new comments and image carousel features almost make me want to use it</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/plugins/wordpress-jetpack-plugin-comments-carousel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Managing multiple WordPress sites: A review of ManageWP, WPRemote and InfiniteWP (my fave)</title>
		<link>http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp</link>
		<comments>http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/#comments</comments>
		<pubDate>Fri, 06 Jul 2012 06:12:06 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[infinitewp]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[managewp]]></category>
		<category><![CDATA[multiple sites]]></category>
		<category><![CDATA[upgrades]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpremote]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1403</guid>
		<description><![CDATA[<p>Over at illuminea.com, we manage over many WordPress websites as part of our WordPress hosting and maintenance service. All of these sites need version upgrades, plugin upgrades, and the rare theme upgrade (since we never use the default WP themes like TwentyEleven). Amazingly, there are 3 services that make mass upgrades possible in a few [...]</p><p>This post was originally published at <a href="http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/">Managing multiple WordPress sites: A review of ManageWP, WPRemote and InfiniteWP (my fave)</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/" data-url="http://illum.in/Rpanbr" data-text="Managing multiple WordPress sites: A review of ManageWP, WPRemote and InfiniteWP (my fave)" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fplugins%2Fhow-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/"></g:plusone></div></div><p>Over at <a href="http://illuminea.com">illuminea.com</a>, we manage over many WordPress websites as part of our <a title="WordPress hosting and maintenance" href="http://illuminea.com/services/wordpress-hosting-and-maintenance/" target="_blank">WordPress hosting and maintenance service</a>. All of these sites need version upgrades, plugin upgrades, and the rare theme upgrade (since we never use the default WP themes like TwentyEleven). Amazingly, there are 3 services that make mass upgrades possible in a few seconds (more or less).</p>
<h2><a href="http://managewp.com">ManageWP</a></h2>
<p><a href="http://managewp.com"><img class=" wp-image-1412" title="managewp" src="http://wpgarage.com/wp-content/uploads/2012/07/managewp1.png" alt="" width="129" height="43" /></a></p>
<p><a href="http://managewp.com">ManageWP</a> was the first of these management tools that I tested and it is definitely the most robust &#8211; they&#8217;ve really thought of everything. For better or for worse, you manage your sites by logging into their website. And, unfortunately, it is the most expensive of the three options. </p>
<p>Depending on which pricing plan you go with, <a href="http://managewp.com/features" target="_blank">ManageWP offers features</a> above and beyond basic upgrades. The list includes features like:</p>
<ul>
<li>One-click and scheduled backups to a bunch of places (Dropbox, Amazon S3, and more)</li>
<li>Easy cloning and migration tools</li>
<li>User and sub-user management</li>
<li>Alerts</li>
<li>Security</li>
<li>Google Analytics + AdSense integration</li>
</ul>
<p>There is a free account for up to 5 websites but it only includes the &#8220;Standard&#8221; features which means no scheduled backups &#8211; a pretty major drawback, in my opinion.  To see the different pricing packages, go to their <a href="http://managewp.com/plans-and-pricing" target="_blank">Plans and Pricing page</a> and then at the bottom click on &#8221;Standard,&#8221; &#8220;Professional,&#8221; or &#8220;Business&#8221; pricing and you&#8217;ll see a chart that shows how much it costs according to how many sites you want to manage. It gets expensive very quickly. For example, managing 50 websites with the Professional features costs $67 a month.</p>
<div class="wp-caption aligncenter" style="width: 515px"><a href="http://managewp.com"><img title="packages" src="http://wpgarage.com/wp-content/uploads/2012/07/packages.png" alt="" width="505" height="207" /></a><p class="wp-caption-text">These buttons are tucked away at the bottom of the Plans and Pricing page.</p></div>
<p style="text-align: center;"> </p>
<p>In terms of user interface, I found the ManageWP Dashboard a bit busy, and I felt like I never really learned where all those extra features were hidden nor, honestly, what I&#8217;d need them for anyway. </p>
<div class="wp-caption aligncenter" style="width: 484px"><img title="managewp" src="http://wpgarage.com/wp-content/uploads/2012/07/managewp.png" alt="" width="474" height="298" /><p class="wp-caption-text">ManageWP&#8217;s interface is a bit cluttered.</p></div>
<p><strong>Bottom line:</strong> ManageWP offers the most features out of all the services reviewed here. But my two main concerns regarding ManageWP are that you&#8217;re so dependent on them to always be around, and they&#8217;re quite pricey.</p>
<div><a href="http://managewp.com"><br /></a></div>
<h2><a href="http://wpremote.com">WPRemote</a></h2>
<p><a href="http://wpremote.com"><img class=" wp-image-1426 alignnone" title="wpremotelogo" src="http://wpgarage.com/wp-content/uploads/2012/07/wpremotelogo1.png" alt="" width="141" height="42" /></a></p>
<p style="text-align: left;">My initial impression of <a href="http://wpremote.com">WPRemote</a> was that it&#8217;s so cute! Its user interface is very simple, clean and user-friendly. Until I started using it. WPRemote lets you upgrade themes and plugins from their dashboard, but their service doesn&#8217;t include bulk WordPress upgrades. You need to leave WPRemote and go to into each client&#8217;s website separately to upgrade it. Ugh! </p>
<div id="attachment_1424" class="wp-caption aligncenter" style="width: 513px"><img class=" wp-image-1424" title="wpremotedashboard" src="http://wpgarage.com/wp-content/uploads/2012/07/wpremotedashboard.png" alt="" width="503" height="238" /><p class="wp-caption-text">Cute and simple&#8230; but maybe a little too simple <img src='http://wpgarage.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p></div>
<p style="text-align: left;">Regarding backups, WPRemote lets you back up to their Amazon S3 account, but as of now, there isn&#8217;t  a way to backup to your own account, which is pretty annoying. </p>
<p style="text-align: left;"><strong>Bottom line:</strong> For a free service, it&#8217;s pretty good, but definitely not robust enough for our needs. The fact that it doesn&#8217;t allow backups to a service of your choice (like Amazon S3, Dropbox, or even FTP to another server), or real bulk WordPress upgrades, could be a problem for many website managers.</p>
<h2 style="text-align: left;"><a href="http://infinitewp.com/">InfiniteWP</a></h2>
<p><a href="http://infinitewp.com/"><img class="size-full wp-image-1428 alignnone" title="infinitewp" src="http://wpgarage.com/wp-content/uploads/2012/07/infinitewp.png" alt="" width="98" height="29" /></a></p>
<p>I saved the best for last! <a href="http://infinitewp.com/">InfiniteWP</a> is a little trickier to set up because you need to upload files to your server, but it is so worth it! First of all, InfiniteWP is FREE! And, second of all, since you&#8217;re hosting it on your server, you&#8217;re not dependent on a third-party service and you have more control over the security.</p>
<p>And, guess what! InfiniteWP is FREE!</p>
<p>I love that you can easily do theme, plugin, and WordPress upgrades by just click, click, clicking around. And if you don&#8217;t want to upgrade something, you just click the &#8220;hide&#8221; button to remove the temptation of the &#8220;upgrade&#8221; button.</p>
<div id="attachment_1430" class="wp-caption aligncenter" style="width: 509px"><img class=" wp-image-1430 " title="hide" src="http://wpgarage.com/wp-content/uploads/2012/07/hide.png" alt="" width="499" height="236" /><p class="wp-caption-text">Love the &#8220;hide&#8221; link!</p></div>
<p>Here are some of the issues I had with InfiniteWP:</p>
<ul>
<li><strong>WordPress in a subdirectory</strong>: I couldn&#8217;t add the <a href="http://wordpress.org/extend/plugins/iwp-client/">InfiniteWP Client plugin</a> directly from InfiniteWP&#8217;s &#8220;Add a site&#8221; area on sites that have the WordPress files in a subdirectory like http://example.com/sitefiles. To resolve this, go to the site and install the plugin from there and then add the site to InfiniteWP.</li>
<li><strong>Multisites</strong>: When adding a site to InfiniteWP, you have to fill out the URL, Admin username, and the API code (which you get after installing the plugin). When I added a multisite, I entered a Super Admin&#8217;s username but it didn&#8217;t work. I then added a regular Admin and then it worked. </li>
<li><strong>fsock error:</strong> Sounds silly, but it really is the name of an error I got when I tried to add InfiniteWP on a password-protected directory. I removed the password-protected directory and then InfiniteWP started working properly.</li>
<li><strong>Backups: </strong>Currently, backups are only available to your own server, which is a problematic way to back up a site &#8211; if the server goes, you lose both the site and the backup! I would love to set backups to go to our Amazon S3 account, but when I contacted the developers, they said that this feature will be added in the future as a premium add-on. Oh well. Luckily there are other alternatives for backups like <a href="http://wordpress.org/extend/plugins/backwpup/">BackWPUp</a>.</li>
<li> <strong>Hard to find the list of websites: </strong>After I added all our sites to InfiniteWP, I wanted to look at all of them to make sure I didn&#8217;t miss any. Only after the developers pointed out the little &#8220;W&#8221; hiding in the corner, did I find the list of websites.<br />
<div id="attachment_1429" class="wp-caption alignnone" style="width: 181px"><img class="size-full wp-image-1429 " title="iwpw" src="http://wpgarage.com/wp-content/uploads/2012/07/iwpw.png" alt="" width="171" height="115" /><p class="wp-caption-text">Hello cute little orange &#8220;W&#8221;.</p></div>
</li>
</ul>
<p><strong>Bottom line:</strong> InfiniteWP is an amazing, robust and free service. It might not be for everyone due to the need to install it yourself, but for those who want control, that ability is actually a big plus. The biggest, and pretty much only, drawback is the inability to back up sites off-server, but hopefully they&#8217;ll add that service soon as they said.</p>
<p>What has your experience been with multiple-site management tools? It&#8217;s amazing that there are such great options for managing multiple WordPress sites springing up left and right. Let the competition continue!</p>
<p>This post was originally published at <a href="http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/">Managing multiple WordPress sites: A review of ManageWP, WPRemote and InfiniteWP (my fave)</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/plugins/how-to-manage-lots-of-wordpress-sites-managewp-wpremote-infinitewp/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>5 Useful Tips for Gravity Forms</title>
		<link>http://wpgarage.com/tips/five-gravity-forms-tips/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=five-gravity-forms-tips</link>
		<comments>http://wpgarage.com/tips/five-gravity-forms-tips/#comments</comments>
		<pubDate>Wed, 27 Jun 2012 17:58:47 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[conditional notifications]]></category>
		<category><![CDATA[gravity forms]]></category>
		<category><![CDATA[line breaks]]></category>
		<category><![CDATA[Salesforce]]></category>
		<category><![CDATA[tabindex]]></category>
		<category><![CDATA[validation messages]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1316</guid>
		<description><![CDATA[<p>We are huge fans of Gravity Forms (so obviously we&#8217;re an affiliate), a premium WordPress plugin for creating forms, because nerdily enough, it actually makes creating forms kinda fun. But most importantly, Gravity Forms makes it really easy for our clients to create forms and enter them in pages, posts and widgets. Do you remember [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/five-gravity-forms-tips/">5 Useful Tips for Gravity Forms</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/tips/five-gravity-forms-tips/" data-url="http://illum.in/OBlMXU" data-text="5 Useful Tips for Gravity Forms" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Ftips%2Ffive-gravity-forms-tips%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/tips/five-gravity-forms-tips/"></g:plusone></div></div><p><img class="wp-image-1342  alignnone" title="Gravity Forms screenshot" alt="" src="http://wpgarage.com/wp-content/uploads/2012/06/gravityforms.png" width="486" height="199" /></p>
<p style="text-align: left;">We are huge fans of <a href="https://www.e-junkie.com/ecom/gb.php?cl=54585&amp;c=ib&amp;aff=180458" target="_blank">Gravity Forms</a> (so obviously we&#8217;re an affiliate), a premium WordPress plugin for creating forms, because nerdily enough, it actually makes creating forms kinda fun. But most importantly, Gravity Forms makes it really easy for our clients to create forms and enter them in pages, posts and widgets. Do you remember the <a href="http://www.deliciousdays.com/cforms-plugin/" target="_blank">cforms</a> plugin and how complicated it was? Thank God that&#8217;s behind us!</p>
<p style="text-align: left;">Not only is Gravity Forms easy to use, it is also a robust plugin including the option to add many different <a href="http://www.gravityforms.com/add-ons/" target="_blank">addons</a>. Because of this, we are always learning new things about it. Here are some things we&#8217;ve learned lately. Please let us know what else you&#8217;ve learned about Gravity Forms.</p>
<h2 style="text-align: left;"><strong>Conditional notifications</strong></h2>
<p style="text-align: left;">Sounds fancy, but it just means that you can send a response to someone based on something they selected in the form.</p>
<p style="text-align: left;">For example, every month, <a href="http://illuminea.com">illuminea</a> broadcasts a <a href="http://illuminea.com/illuminea-college/latest-web-trends-for-marketing-professionals/">webinar</a> where participants can choose to watch the webinar in-person at illuminea headquarters or online via livestreaming. We have two confirmation emails and Gravity Forms needs to send the right one depending on which option the person chose.</p>
<p style="text-align: left;">Here&#8217;s what our notification looked like using <a href="http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode">conditional shortcodes</a> in Gravity Forms (just remove the spaces next to the brackets):</p>
<p style="padding-left: 30px; text-align: left;">Thanks for registering for the Latest Web Trends for Marketing Professionals event with Miriam Schwab on July 30, 2012 at 10am!</p>
<p style="padding-left: 30px; text-align: left;">[ gravityforms action="conditional" merge_tag="{Location:6}" condition="is" value="<strong>Attend at illuminea headquarters."</strong> ]</p>
<p style="padding-left: 30px; text-align: left;">Directions can be found here: http://www.illuminea.com/contact-us [/gravityforms]</p>
<p style="padding-left: 30px; text-align: left;">[ gravityforms action="conditional" merge_tag="{Location:6}" condition="is" value="<strong>Watch it via live streaming!</strong> We'll email you a link." ]</p>
<p style="padding-left: 30px; text-align: left;">Here&#8217;s the link to watch the webinar LIVE: http://example.com [/gravityforms]</p>
<h2 style="text-align: left;">Validation messages for other languages</h2>
<p style="text-align: left;">For our Hebrew WordPress sites, we needed a way to display the error/validation messages in Hebrew. Just as I started looking into complex solutions, someone pointed out that I could just use the &#8220;Validation Message&#8221; field in the Advanced tab to do the trick! So handy!</p>
<p style="text-align: left;"><img class="wp-image-1338" title="validation" alt="" src="http://wpgarage.com/wp-content/uploads/2012/06/validation.png" width="284" height="241" /></p>
<h2 style="text-align: left;">Fixing the tabbing issue on pages with more than one Gravity Form</h2>
<p style="text-align: left;">One of the sites we built had a form in the footer that let people sign up to become a contributor to the blog. That was fine and dandy everywhere on the site except for the Contact page, which obviously displayed another form. As I filled out the contact form and pressed Tab to go to the next field, the cursor jumped down to the footer&#8217;s contributor form. Tab again, and back up to the Contact form! Although this gave us a good laugh, it wasn&#8217;t exactly great usability. Gravity Forms offers the following <a href="http://www.gravityhelp.com/forums/topic/field-tab-order#post-9548">solution to create a filter</a> in your functions.php that alters the &#8220;tabindex&#8221;.</p>
<p style="text-align: left;">For example, this changes form id#10&#8242;s tabindex start value to 4</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;&lt;?php function remove_gravity_tabs() {<br />
       return 4;<br />
}<br />
add_filter('gform_tabindex',  'remove_gravity_tabs'); ?&gt;</div></div>
<p>&nbsp;</p>
<h2 style="text-align: left;">Notification emails to user &#8211; adding line breaks</h2>
<p>On one of our forms, whenever a user filled out the form, they would get an email notification with all the text on one line without paragraph breaks, even though everything looked all nice and neat in the Notifications editor in Gravity Forms. Turns out a little checkbox makes all the difference! All you need to do is disable the auto-formatting and then the notification will save the paragraph breaks you created in the visual editor.</p>
<p><img class="size-full wp-image-1339 alignnone" title="autoformat" alt="" src="http://wpgarage.com/wp-content/uploads/2012/06/autoformat.png" width="204" height="43" /></p>
<h2>Matching Gravity Forms fields to SalesForce fields</h2>
<p>Gravity Forms makes it super easy to connect your Gravity form to SalesForce. All you have to do is insert your SalesForce key in the Gravity Forms Options page. Unfortunately, although that was easy enough, some of the fields&#8217; content didn&#8217;t arrive in SalesForce.</p>
<p>In order to get the problematic fields to integrate with Salesforce properly, we did the following:</p>
<ol>
<li>Get your SalesForce rep (or, if you&#8217;re a SalesForce genius, then maybe you can find it yourself) to give you the HTML web form code.</li>
<li>In the problematic field, go to the Admin Label and enter the SalesForce &#8220;name&#8221; of the field.</li>
</ol>
<h3>Example #1 &#8211; basic fields</h3>
<p>The code for the First Name field, which initially wasn&#8217;t working, looks like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;&lt;label for=&quot;first_name&lt;strong&gt;&quot;&lt;/strong&gt;&gt;First Name&lt;/label&gt;&lt;input  id=&quot;first_name&quot; maxlength=&quot;40&quot; name=&quot;&lt;strong&gt;first_name&lt;/strong&gt;&quot; size=&quot;20&quot; type=&quot;text&quot; /&gt;</div></div>
<p>We opened up the Advanced settings of the First Name field and entered &#8220;first_name&#8221; in the Admin Label.</p>
<p><img class="alignnone size-medium wp-image-1364" title="gravity forms first name field" alt="" src="http://wpgarage.com/wp-content/uploads/2012/06/gravity-forms-11-300x113.png" width="300" height="113" /></p>
<p>Thankfully, it worked like a charm.</p>
<h3>Example #2 &#8211; custom fields</h3>
<p>In the case of custom fields like a dropdown menu of Countries, the label &#8220;Country&#8221; wasn&#8217;t enough. The code from Salesforce looks like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Country:&lt;select  id=&quot;00N20000001Me89&quot; name=&quot;&lt;strong&gt;00N20000001Me89&lt;/strong&gt;&quot; title=&quot;Country&quot;&gt;</div></div>
<p>After we inserted the reference ID for the Country field, SalesForce recognized the Admin Label:</p>
<p><img class="alignnone  wp-image-1365" title="gravity forms custom fields" alt="" src="http://wpgarage.com/wp-content/uploads/2012/06/gravity-forms-21.png" width="318" height="120" /></p>
<p>Feel free to share more Gravity Forms tips in the comments &#8211; I&#8217;d love to hear what you&#8217;ve learned!</p>
<p>This post was originally published at <a href="http://wpgarage.com/tips/five-gravity-forms-tips/">5 Useful Tips for Gravity Forms</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/five-gravity-forms-tips/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Data Serialization, WordPress, and my new best friend</title>
		<link>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=data-serialization-wordpress-and-my-new-best-friend</link>
		<comments>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/#comments</comments>
		<pubDate>Thu, 03 May 2012 13:00:16 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[data serialization]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[site migration]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1296</guid>
		<description><![CDATA[<p>Recently, Miriam wrote about Data Serialization and what a pain in the tuchus it can be to migrate a site that has serialized links in the database. So, today, when I migrated one of our client&#8217;s sites from our staging server to the live/production server, I was frustrated that some of the widgets weren&#8217;t showing [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/">Data Serialization, WordPress, and my new best friend</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/" data-url="http://illum.in/JPJ31m" data-text="Data Serialization, WordPress, and my new best friend" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Ftips%2Fdata-serialization-wordpress-and-my-new-best-friend%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/"></g:plusone></div></div><p>Recently, Miriam wrote about <a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/">Data Serialization</a> and what a pain in the <a href="http://en.wiktionary.org/wiki/tuchus">tuchus</a> it can be to migrate a site that has serialized links in the database.</p>
<p>So, today, when I migrated one of our client&#8217;s sites from our staging server to the live/production server, I was frustrated that some of the widgets weren&#8217;t showing up properly after my usual Search and Replace of the old URL to the new URL in the database, yet excited that I could read her post to find a solution. Frustrexcited, if you will.</p>
<p>Here are the solutions I tried and read on to see which one actually worked:</p>
<p><a href="http://wordpress.org/extend/plugins/wp-live-server-deploy/">WP Live Server Deploy</a>: This plugin was featured on <a href="http://wpmu.org/automate-wordpress-migration-with-wp-live-server-deploy/">wpmu.org</a>, looked like a really good solution. The plugin claimed to quickly migrate your development/staging site to your live/production site, including changing all the old URLs to new URLs. Well, it sounded great, but.. it didn&#8217;t work.  After I entered the new site&#8217;s FTP information into the plugin settings, the FTP info was verified. But when I clicked the &#8220;Automate Deployment&#8221; button, the plugin couldn&#8217;t &#8220;determines the remote capabilities of the server&#8221;.  Then I tried to do a manual backup using this plugin and that didn&#8217;t work either. Next.</p>
<p><a href="http://petesaia.com/work/peach/">Peach</a> - An online tool that lets you drag-and-drop a .sql file into the page and set a new domain. I was skeptical because it looked too easy. When I dropped in my .sql file it said there were 0 serialized links. Boo.</p>
<p> <a href="http://wordpress.org/extend/plugins/wp-migrate-db/">WP Migrate DB </a>- My new best friend. Please meet WP Migrate DB. No, he/she doesn&#8217;t have a fancy, memorable name, but I definitely wanted to hug and high-five this plugin after it did what it said it would do. It changed all the old URLs to new URLs in the database, including fixing serialized links, and lets you download the new SQL file. I was so happy not to have to mess with any Search and Replace plugins or SQL queries in PHPMyAdmin. </p>
<p>This post was originally published at <a href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/">Data Serialization, WordPress, and my new best friend</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to fix apostrophes turning into slashes in WordPress</title>
		<link>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-fix-apostrophes-turning-into-slashes-in-wordpress</link>
		<comments>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 13:58:52 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[apostrophe]]></category>
		<category><![CDATA[backslash]]></category>
		<category><![CDATA[custom options]]></category>
		<category><![CDATA[slash]]></category>
		<category><![CDATA[strip]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1266</guid>
		<description><![CDATA[<p>We build our sites with a custom theme options panel in the Dashboard so that clients can manage as much of their site on their own as possible. All seemed fine and dandy until the client threw in an apostrophe! The chutzpah. Can&#8217;t you just use &#8220;We will&#8221; instead of &#8220;We&#8217;ll&#8221;? The problem was that [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/">How to fix apostrophes turning into slashes in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/" data-url="http://illum.in/Ip546J" data-text="How to fix apostrophes turning into slashes in WordPress" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fcode-snippets%2Fhow-to-fix-apostrophes-turning-into-slashes-in-wordpress%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/"></g:plusone></div></div><p>We build our sites with a custom theme options panel in the Dashboard so that clients can manage as much of their site on their own as possible. All seemed fine and dandy until the client threw in an apostrophe! The chutzpah. Can&#8217;t you just use &#8220;We will&#8221; instead of &#8220;We&#8217;ll&#8221;?</p>
<p>The problem was that when an apostrophe was entered into a custom text label in the options panel, a slash decided to come along for the ride. Example: Instead of seeing &#8220;We&#8217;ll send you a link&#8221;, the site displayed &#8220;We\&#8217;ll send you a link&#8221;. I searched around and finally found this post, <a href="http://curtismchale.ca/2010/12/09/using-stripslashes-with-theme-options/">Using stripslashes() with Theme Options</a> which explains that you need to use the stripslashes function when you return the content stored in the custom text.</p>
<p>Basically, you just wrap stripslashes() around the get_option like so:</p>
<p>If you had &lt;?php  echo get_option(&#8216;cgn_<wbr>404_text&#8217;); ?&gt;</wbr></p>
<p>it would now be:</p>
<p>&lt;?php  echo stripslashes(get_option(&#8216;cgn_<wbr>404_text&#8217;)); ?&gt;</wbr></p>
<p>In your custom-text.php file, you&#8217;ll probably use something like this:</p>
<div>&lt;?php echo  stripslashes($selected_book_<wbr>description); ?&gt;</wbr></div>
<div> </div>
<div>No more slashtastrophies!</div>
<div> </div>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/">How to fix apostrophes turning into slashes in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to list subpages with a title and excerpt in WordPress</title>
		<link>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-list-subpages-with-title-excerpt-in-wordpress</link>
		<comments>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 08:55:33 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[child page]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[parent page]]></category>
		<category><![CDATA[subpages]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1268</guid>
		<description><![CDATA[<p>We developed a site that has really rich subpages (child pages) but the parent page is mostly a blank placeholder that directs people to the subpages. Instead of merely leaving a blank parent page, we wanted to give a preview of the content on each of the subpages. I found the code for how to [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/">How to list subpages with a title and excerpt in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/" data-url="http://illum.in/Hx7UVU" data-text="How to list subpages with a title and excerpt in WordPress" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fcode-snippets%2Fhow-to-list-subpages-with-title-excerpt-in-wordpress%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/"></g:plusone></div></div><p>We developed a site that has really rich subpages (child pages) but the parent page is mostly a blank placeholder that directs people to the subpages. Instead of merely leaving a blank parent page, we wanted to give a preview of the content on each of the subpages. I found the code for how to do it in this post, <a href="http://wpguru.co.za/templates/page/display-title-excerpt-of-child-pages/ ">Display title &amp; excerpt of child pages</a>.  </p>
<p></p><pre class="crayon-plain-tag">get_results(&quot;SELECT * FROM $wpdb-&amp;gt;posts WHERE post_parent = &quot;.$post-&amp;gt;ID.&quot; AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT'); ?&amp;gt;</pre><p></p>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/">How to list subpages with a title and excerpt in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</title>
		<link>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery</link>
		<comments>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 14:27:05 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[disclaimer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mailto]]></category>
		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1209</guid>
		<description><![CDATA[<p>Several of our clients requested that we add popup disclaimers before someone sends an email to the site admin or before they submit a comment. Here&#8217;s a screenshot of what we&#8217;re going to do: Case 1: Add a Contact Us link to the navigation menu that triggers a disclaimer popup.   Once a visitor clicks OK, [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/">Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
				<content:encoded><![CDATA[<div class="socialize-in-content socialize-in-content-right"><div class="socialize-in-button socialize-in-button-right"><a href="http://twitter.com/share" class="twitter-share-button" data-counturl="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/" data-url="http://illum.in/GZGYMO" data-text="Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress" data-count="vertical" data-via="wpgarage" data-related="wpgarage"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-right"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwpgarage.com%2Fcode-snippets%2Fdisclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery%2F&amp;send=&amp;layout=box_count&amp;width=50&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-right"><g:plusone size="tall" href="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/"></g:plusone></div></div><p>Several of our clients requested that we add popup disclaimers before someone sends an email to the site admin or before they submit a comment. Here&#8217;s a screenshot of what we&#8217;re going to do:</p>
<p><img class="alignnone" title="popups" src="http://wpgarage.com/wp-content/uploads/2012/03/popups.png" alt="" width="384" height="211" /></p>
<h3><strong>Case 1: Add a Contact Us link to the navigation menu that triggers a disclaimer popup.</strong>  <br />
Once a visitor clicks OK, open the visitor&#8217;s email client using the mailto: function.</h3>
<ol>
<li>In the WordPress dashboard, go to Appearance > Menus and add a custom link. <br /> <img title="menumailto" src="http://wpgarage.com/wp-content/uploads/2012/03/menumailto.png" alt="" width="280" height="269" /> </li>
<li>Go to Screen Options and make sure the &#8220;CSS Classes&#8221; checbox is checked</li>
<li>In the URL field, put <em>mailto:youremail@yoursite.com </em></li>
<li>In the CSS Class, put <em>show-confirm-popup</em></li>
<li>Open up header.php</li>
<li>Check to see if you already have the jQuery library loaded on your site. If not, add the following somewhere between the opening and closing head tags <br />
<pre class="crayon-plain-tag">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&quot;&gt;&lt;/script&gt;</pre>
</li>
<li>Add the following code between the opening and closing head tag. Make sure to change the text of the disclaimer.<br />
<pre class="crayon-plain-tag">&lt;script type=&quot;text/javascript&quot;&gt;$(document).ready(function(){ $('.show-confirm-popup a').each(function(){ $(this).click(showConfirmPopup); }); }); function showConfirmPopup(){ var confirmation_text = 'Change this text. By clicking &quot;OK,&quot; you agree that you have read and understand this notice.'; return confirm(confirmation_text); }   $(function(){ }); &lt;/script&gt;</pre>
</li>
</ol>
<h3>  <strong>Case 2: Add the popup disclaimer to any link.  </strong></h3>
<ol>
<li>Add the following link structure anywhere on your site.<br />
<pre class="crayon-plain-tag">&lt;a onclick=&quot;return showConfirmPopup();&quot; href=&quot;mailto:youremail@yoursite.com&quot;&gt;Contact Us&lt;/a&gt;;&nbsp;</pre>
</li>
<li>Copy the code from Step 6 and 7 from Case 1 above into header.php.</li>
</ol>
<h3><strong>Case 3: Add the popup disclaimer before a comment is submitted</strong></h3>
<ol>
<li>Open Comments.php</li>
<li>Do a search for the word &#8220;submit&#8221;</li>
<li>Add the onClick parameter to the Submit button. It will look something like this:<br />
<pre class="crayon-plain-tag">&lt;input name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; &nbsp; value=&quot;Submit Comment&quot; onClick=&quot;return showConfirmCommentPopup();&quot; /&gt;</pre>
</li>
<li>Copy the code from Step 6 and 7 from Case 1 into header.php and also in header.php, add the following function. Remember to change the text.<br />
<pre class="crayon-plain-tag">function showConfirmCommentPopup(){ var confirmation_text = 'Change this text. By clicking &quot;OK,&quot; you agree that you have read and understand this notice.'; return confirm(confirmation_text); }</pre></p>
<p>&nbsp;</p>
</li>
</ol>
<p>Big thank you to <a href="http://sinapsa.co.il">Elisha</a>!</p>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/">Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
