<?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>Build Me A Fab Website &#187; WordPress Tutorials</title>
	<atom:link href="http://www.buildmeafabwebsite.co.uk/category/wordpress-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.buildmeafabwebsite.co.uk</link>
	<description>Friendly, Low Cost Web Design &#38; Hosting</description>
	<lastBuildDate>Mon, 16 Jan 2012 20:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Admin Bar Tricks</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 21:30:47 +0000</pubDate>
		<dc:creator>Diggin In</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=9235</guid>
		<description><![CDATA[<p>According to our <a title="Poll: Love or Hate the WordPress Admin Bar" href="http://digwp.com/2011/04/poll-love-hate-admin-bar/">latest poll</a>, so far the votes are pretty much split on whether people <em>love</em>, <em>hate</em>, or <em>don’t care</em> about WordPress’ new Admin Bar. Over time, it looks like&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/">Admin Bar Tricks</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>According to our <a title="Poll: Love or Hate the WordPress Admin Bar" href="http://digwp.com/2011/04/poll-love-hate-admin-bar/">latest poll</a>, so far the votes are pretty much split on whether people <em>love</em>, <em>hate</em>, or <em>don’t care</em> about WordPress’ new Admin Bar. Over time, it looks like “Hate it” has started to pull ahead, but it doesn’t matter because <strong>the Admin Bar is here to stay</strong>, regardless of opinion. Already there are many awesome ways to make it do virtually <em>whatever you want</em>. In this <abbr title="Digging into WordPress">DigWP</abbr> post, we round up a ton of tips, tricks, and plugins for ultimately mastering the WordPress Admin Bar.</p>
<p><span> </span></p>
<p>Here is our menu of <strong>Admin Bar Tricks</strong> for WordPress 3.1 and better:</p>
<ul>
<li><a href="http://digwp.com#disable-for-users">Disable the Admin Bar for individual users</a></li>
<li><a href="http://digwp.com#disable-for-theme">Disable the Admin Bar for all users of the current theme</a></li>
<li><a href="http://digwp.com#disable-for-non-admins">Disable the Admin Bar for non-Admins only</a></li>
<li><a href="http://digwp.com#always-show">Always show the Admin Bar</a></li>
<li><a href="http://digwp.com#move-to-bottom">Move the Admin Bar to the bottom</a></li>
<li><a href="http://digwp.com#add-remove-links">Add or Remove links from the Admin Bar</a></li>
<li><a href="http://digwp.com#clean-profile">Clean up User Profile Page</a></li>
<li><a href="http://digwp.com#admin-bar-plugins">Disable and Customize the Admin Bar with Plugins</a></li>
<li><a href="http://digwp.com#admin-bar-resources">Even More Admin Bar Resources</a></li>
</ul>
<h3>Disable the Admin Bar for individual users</h3>
<p>By default, each registered user has the option of showing the Admin on the frontend and/or back-end of the site. Thus, to change your preferences, just visit <strong>Users</strong> &gt; <strong>Your Profile</strong> and choose your options as seen here:</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/aa922_admin-bar-settings.gif" alt="[ Screenshot: Admin Bar Settings ]" /></p>
<p>Unfortunately, this gets kind of tedious when customizing profiles for many users. Fortunately, we’re just getting started, so read ahead to see more efficient ways of disabling and modifying the WordPress Admin Bar.</p>
<h3>Disable the Admin Bar for all users of the current theme</h3>
<p>To cleanly disable the Admin Bar for all users of your theme (and thus your site), add this snippet to your theme’s <code>functions.php</code> file:</p>
<pre><code>// disable the admin bar
show_admin_bar(false);</code></pre>
<p>Alternately, you may use this method, which filters the <code>show_admin_bar</code> function:</p>
<pre><code>// disable the admin bar
add_filter('show_admin_bar', '__return_false');</code></pre>
<p>Another option is to hide the Admin Bar using <abbr title="Cascading Style Sheets">CSS</abbr>. To do so, paste this into your<br />
theme’s <code>style.css</code> (or other stylesheet):</p>
<pre><code>/* hide the admin bar */
#wpadminbar { display:none; }</code></pre>
<h3>Disable the Admin Bar for non-Admins only</h3>
<p>Expanding on the previous example, here are two snippets that disable the Admin Bar for non-Admins and Editors. Place either of the following in <code>functions.php</code>:</p>
<pre><code>// show admin bar only for admins
if (!current_user_can('manage_options')) {
	add_filter('show_admin_bar', '__return_false');
}
// show admin bar only for admins and editors
if (!current_user_can('edit_posts')) {
	add_filter('show_admin_bar', '__return_false');
}</code></pre>
<p>As you might guess, any setting may be used for <code>current_user_can()</code>, so it’s easy to show/hide the Admin Bar for any particular group of users.</p>
<h3>Clean up User Profile Page</h3>
<p>After disabling the Admin Bar, you may want to hide its display settings in each user’s Profile Page. The easiest way to do this is with a simple function:</p>
<pre><code>function hideAdminBar() { ?&amp;gt;
&amp;lt;style type="text/css"&amp;gt;.show-admin-bar { display: none; }&amp;lt;/style&amp;gt;
&amp;lt;?php }
add_action('admin_print_scripts-profile.php', 'hideAdminBar');</code></pre>
<p>Just place that in your theme’s <code>functions.php</code> and you’re good to go. No more Admin Bar Settings displayed in the Admin area.</p>
<h3>Always show the Admin Bar</h3>
<p><a title="Always show admin bar" href="http://blog.ftwr.co.uk/archives/2011/01/05/always-show-admin-bar/">Follow the white rabbit</a> shows us how to show the Admin Bar even when logged out. As a bonus, a handy “Log in” button is added to the bar for easy maneuvering. Just add the following snippet to your theme’s <code>functions.php</code> file:</p>
<pre><code>// always show admin bar
function pjw_login_adminbar( $wp_admin_bar) {
	if ( !is_user_logged_in() )
	$wp_admin_bar-&amp;gt;add_menu( array( 'title' =&amp;gt; __( 'Log In' ), 'href' =&amp;gt; wp_login_url() ) );
}
add_action( 'admin_bar_menu', 'pjw_login_adminbar' );
add_filter( 'show_admin_bar', '__return_true' , 1000 );</code></pre>
<p>You can see it in action at <a title="Always show admin bar" href="http://blog.ftwr.co.uk/archives/2011/01/05/always-show-admin-bar/">follow the white rabbit</a>.</p>
<h3>Move the Admin Bar to the bottom</h3>
<p>Want to display the Admin Bar at the bottom of the page instead of the top? <a title="Move WordPress Admin Bar to the Bottom" href="http://wpengineer.com/2190/move-wordpress-admin-bar-to-the-bottom/">WPengineer</a> shows us how with this bit of <abbr title="Cascading Style Sheets">CSS</abbr> via the <code>functions.php</code> file:</p>
<pre><code>// move admin bar to bottom
function fb_move_admin_bar() { ?&amp;gt;
	&amp;lt;style type="text/css"&amp;gt;
		body {
			margin-top: -28px;
			padding-bottom: 28px;
		}
		body.admin-bar #wphead {
			padding-top: 0;
		}
		body.admin-bar #footer {
			padding-bottom: 28px;
		}
		#wpadminbar {
			top: auto !important;
			bottom: 0;
		}
		#wpadminbar .quicklinks .menupop ul {
			bottom: 28px;
		}
	&amp;lt;/style&amp;gt;
&amp;lt;?php }
// on backend area
add_action( 'admin_head', 'fb_move_admin_bar' );
// on frontend area
add_action( 'wp_head', 'fb_move_admin_bar' );</code></pre>
<p>This code adds the required CSS to both the front-end (public pages) and back-end (admin pages). To disable for one or the other, just comment-out or remove the corresponding <code>add_action()</code> line near the end of the code. You could also just copy/paste the CSS into your theme’s <code>style.css</code> file if you only need to move it on the front-end of your site. An even easier way is provided by Coen Jacobs’ <a href="http://cnjcbs.com/wordpress-plugins/stick-admin-bar-to-bottom/">Stick Admin Bar To Bottom</a> plugin that makes it happen automagically.</p>
<h3>Add or Remove links from the Admin Bar</h3>
<p><a title="How to Add or Remove Links From the WordPress 3.1 Admin Bar" href="http://wpmu.org/how-to-add-or-remove-links-from-the-wordpress-3-1-admin-bar/">WPMU.org</a> shows us how to add/remove links from the Admin Bar. This is especially useful for MultiSite networks, where all of the extra links may not be necessary. The following code may be used to <strong>remove</strong> links and/or menus (via <code>functions.php</code>:</p>
<pre><code>// remove links/menus from the admin bar
function mytheme_admin_bar_render() {
	global $wp_admin_bar;
	$wp_admin_bar-&amp;gt;remove_menu('comments');
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );</code></pre>
<p>For this example, we use <code>remove_menu('comments')</code> to remove the comments dropdown list. To remove a different link/menu, check <code>/wp-includes/admin-bar.php</code> for the corresponding ID. Here’s a list of some of them to get you started:</p>
<ul>
<li><code>my-account</code> – link to your account (avatars disabled)</li>
<li><code>my-account-with-avatar</code> – link to your account (avatars enabled)</li>
<li><code>my-blogs</code> – the “My Sites” menu if the user has more than one site</li>
<li><code>get-shortlink</code> – provides a Shortlink to that page</li>
<li><code>edit</code> – link to the Edit/Write-Post page</li>
<li><code>new-content</code> – link to the “Add New” dropdown list</li>
<li><code>comments</code> – link to  the “Comments” dropdown</li>
<li><code>appearance</code> – link to the “Appearance” dropdown</li>
<li><code>updates</code> – the “Updates” dropdown</li>
</ul>
<p>To <strong>add</strong> links/menus to the Admin Bar, add the following code to your <code>functions.php</code> file:</p>
<pre><code>// add links/menus to the admin bar
function mytheme_admin_bar_render() {
	global $wp_admin_bar;
	$wp_admin_bar-&amp;gt;add_menu( array(
		'parent' =&amp;gt; 'new-content', // use 'false' for a root menu, or pass the ID of the parent menu
		'id' =&amp;gt; 'new_media', // link ID, defaults to a sanitized title value
		'title' =&amp;gt; __('Media'), // link title
		'href' =&amp;gt; admin_url( 'media-new.php') // name of file
		'meta' =&amp;gt; false // array of any of the following options: array( 'html' =&amp;gt; '', 'class' =&amp;gt; '', 'onclick' =&amp;gt; '', target =&amp;gt; '', title =&amp;gt; '' );
	));
}
add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );</code></pre>
<p>You’ll want to adjust the parameters to fit your needs, and don’t forget to see the <a title="WP Codex: Function Reference/add menu" href="http://codex.wordpress.org/Function_Reference/add_menu">Codex</a> for additional information. For even more insight into this technique, see WPengineer’s post on <a href="http://wpengineer.com/2113/add-menus-to-the-admin-bar-of-wordpress/">adding menus to the Admin Bar</a>.</p>
<h3>Disable and Customize the Admin Bar with Plugins</h3>
<p>Almost immediately after the Admin Bar was added to the WordPress core, plugins started popping up to disable it, move it, minimize it, and more. Here’s a quick list of plugins and links for ultimate control over the Admin Bar.</p>
<ul>
<li><a href="http://digwp.com/u/542">Admin Bar Disabler</a></li>
<li><a href="http://digwp.com/u/543">Admin Bar Minimiser</a></li>
<li><a href="http://digwp.com/u/544">Admin Bar Removal</a></li>
<li><a href="http://digwp.com/u/545">Global Hide/Remove Admin Bar Plugin</a></li>
<li><a href="http://digwp.com/u/546">Hide Admin Bar Search</a></li>
<li><a href="http://digwp.com/u/547">Stick Admin Bar To Bottom</a></li>
<li><a href="http://digwp.com/u/548">WP Custom Admin Bar</a></li>
</ul>
<p>If you know of others, mention them in the comments and we’ll add them to the list!</p>
<h3>More Admin-Bar Resources</h3>
<p>Here are some excellent resources for more information on the WordPress Admin Bar.</p>
<ul>
<li><a href="http://codex.wordpress.org/Administration_Menus">WP Codex: Administration Menus</a></li>
<li><a title="WP Codex: Function Reference/add menu" href="http://codex.wordpress.org/Function_Reference/add_menu">WP Codex: Function Reference/add menu</a></li>
<li><a href="http://yoast.com/disable-wp-admin-bar/">How to disable the WordPress Admin Bar</a></li>
<li><a href="http://www.wpbeginner.com/wp-tutorials/what-everybody-ought-to-know-about-the-wordpress-admin-bar/">What Everybody Ought to Know about the WordPress Admin Bar</a></li>
</ul>
<p>Like the article? <a href="http://digwp.com/book"><strong>Get the book!</strong></a></p>
<hr />
<p>© 2011 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2011/04/admin-bar-tricks/">Permalink</a> | <a href="http://digwp.com/2011/04/admin-bar-tricks/#comments">2 comments</a> | Add to<br />
<a href="http://del.icio.us/post?url=http://digwp.com/2011/04/admin-bar-tricks/&amp;title=Admin Bar Tricks">Delicious</a><br />
Categorized: <a title="View all posts in Admin" rel="category tag" href="http://digwp.com/category/admin/">Admin</a> | Tagged: <a rel="tag" href="http://digwp.com/tag/admin/">Admin</a>, <a rel="tag" href="http://digwp.com/tag/admin-bar/">admin-bar</a>, <a rel="tag" href="http://digwp.com/tag/tips/">tips</a>, <a rel="tag" href="http://digwp.com/tag/tricks/">tricks</a></p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/aa922_UBbtqa5fEaY" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/" rel="bookmark" title="July 20, 2011">How to show an urgent message in the WordPress admin area</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/specify-unique-css-file-per%c2%a0post/" rel="bookmark" title="May 31, 2010">Specify Unique CSS File Per Post</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-disable-image-caption-in-wordpress-post-editor/" rel="bookmark" title="January 18, 2010">How to disable image caption in WordPress post editor</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-remove-nofollow-attributes-from-post%c2%a0content/" rel="bookmark" title="February 26, 2010">WordPress Tip: Remove nofollow Attributes from Post Content</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/custom-page-titles-from%c2%a0scratch/" rel="bookmark" title="June 16, 2010">Custom Page Titles from Scratch</a></li>
</ul>
<p><!-- Similar Posts took 26.903 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/">Admin Bar Tricks</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to show an urgent message in the WordPress admin area</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 21:00:47 +0000</pubDate>
		<dc:creator>Wp Recipes</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=9138</guid>
		<description><![CDATA[<p>The following is a snippet of my custom function that shows a message to the user. This be used from anywhere in your theme or plugin if you wanted to give the user a standard message. e.g. &#8220;Settings successfully updated&#8221;&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/">How to show an urgent message in the WordPress admin area</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The following is a snippet of my custom function that shows a message to the user. This be used from anywhere in your theme or plugin if you wanted to give the user a standard message. e.g. &#8220;Settings successfully updated&#8221; or something similar.</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/9da4c_How-to-show-an-urgent-message-in-the-WordPress-admin-area.jpg" alt="" /></p>
<pre>/**
 * Generic function to show a message to the user using WP's
 * standard CSS classes to make use of the already-defined
 * message colour scheme.
 *
 * @param $message The message you want to tell the user.
 * @param $errormsg If true, the message is an error, so use
 * the red message style. If false, the message is a status
  * message, so use the yellow information message style.
 */
function showMessage($message, $errormsg = false)
{
	if ($errormsg) {
		echo '&lt;div id="message" class="error"&gt;';
	}
	else {
		echo '&lt;div id="message" class="updated fade"&gt;';
	}

	echo "&lt;p&gt;&lt;strong&gt;$message&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;";
}</pre>
<p>Now we just add a hook to the admin notices function to show our custom message.</p>
<pre>/**
 * Just show our message (with possible checking if we only want
 * to show message to certain users.
 */
function showAdminMessages()
{
    // Shows as an error message. You could add a link to the right page if you wanted.
    showMessage("You need to upgrade your database as soon as possible...", true);

    // Only show to admins
    if (user_can('manage_options') {
       showMessage("Hello admins!");
    }
}

/**
  * Call showAdminMessages() when showing other admin
  * messages. The message only gets shown in the admin
  * area, but not on the frontend of your WordPress site.
  */
add_action('admin_notices', 'showAdminMessages');
</pre>
<p>And that&#8217;s all there is to it!</p>
<p><strong><em>Thanks to Dan Harrison of <a href="http://www.wpdoctors.co.uk">WordPress Doctors</a> for the tip! </em></strong></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/90036_ed9ZgHEglIc" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/custom-page-titles-from%c2%a0scratch/" rel="bookmark" title="June 16, 2010">Custom Page Titles from Scratch</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/" rel="bookmark" title="January 25, 2010">Display most recent comments with Gravatar</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/add-private-content-to-posts-via%c2%a0shortcode/" rel="bookmark" title="May 6, 2010">Add Private Content to Posts via Shortcode</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/specify-unique-css-file-per%c2%a0post/" rel="bookmark" title="May 31, 2010">Specify Unique CSS File Per Post</a></li>
</ul>
<p><!-- Similar Posts took 33.725 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/">How to show an urgent message in the WordPress admin area</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to easily add google ad through text widget in wordpress</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/#comments</comments>
		<pubDate>Sat, 04 Jun 2011 21:26:33 +0000</pubDate>
		<dc:creator>WordPress API</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=9286</guid>
		<description><![CDATA[<p>http://wordpressapi.com/2011/04/15/how-to-easily-add-google-ad-through-text-widget-in-wordpress/</p>
<p>wordpress blogs and google ads is most common thing in blogs. Through google ads you can earn easily money. Many times many people search for how to place the google ads in wordpress sites.</p>
<p>Some times they spend so&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/">how to easily add google ad through text widget in wordpress</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>http://wordpressapi.com/2011/04/15/how-to-easily-add-google-ad-through-text-widget-in-wordpress/</p>
<p>wordpress blogs and google ads is most common thing in blogs. Through google ads you can earn easily money. Many times many people search for how to place the google ads in wordpress sites.</p>
<p>Some times they spend so much time for checking google adsense ready wordpress themes. But I always prefer to use the text widget from wordpress widget section. Through this text widget panel you can add the google ads to your wordpress sites.</p>
<p>First you need to login to your wordpress admin panel. Go to Apperance-&gt;widget section.</p>
<p><a rel="attachment wp-att-6583" href="http://www.buildmeafabwebsite.co.uk/?attachment_id=6583"><img class="alignnone size-full wp-image-6583" title="how to easily add google ad through text widget in wordpress" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/a9436_how-to-easily-add-google-ad-through-text-widget-in-wordpress.png" alt="" width="271" height="293" /></a></p>
<p>You will find text widget in that page. Just drag text widget to your sidebar section. putting the google ad in top sidebar section is good for earning good amount of money. Right top side you will find the arrow button, just click on that and put your google ad code in textarea.</p>
<p>I used following code. You can also use the following google ad code for testing purpose.</p>
<pre>
&lt;script type="text/javascript"&gt;&lt;!--
google_ad_client = "ca-pub-4949877136251097";
/* wordpressapi - 336x280 size */
google_ad_slot = "3956087267";
google_ad_width = 336;
google_ad_height = 280;
//--&gt;
&lt;/script&gt;
&lt;script type="text/javascript"
src="<a rel="nofollow" href="http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&amp;gt">http://pagead2.googlesyndication.com/pagead/show_ads.js"&amp;gt</a>;
&lt;/script&gt;
</pre>
<p>In title section write “Sponsors” word and then click on save button as per shown in following image.</p>
<div id="attachment_6584" class="wp-caption alignnone&lt;a rel="><img class="size-full wp-image-6584" title="how to easily add google ad through text widget in wordpress-1" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/b9fac_how-to-easily-add-google-ad-through-text-widget-in-wordpress-1.png" alt="how to easily add google ad through text widget in wordpress" width="618" height="514" />how to easily add google ad through text widget in wordpress</p>
</div>
<p>After this check your webpage. You can able to see your google ad on your wordpress site.I given the sample image. how your ad will be shown in wordpress site sidebar panel.</p>
<p><a rel="attachment wp-att-6585" href="http://www.buildmeafabwebsite.co.uk/?attachment_id=6585"><img class="alignnone size-full wp-image-6585" title="digcms-ads" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/a77e4_digcms-ads.png" alt="" width="534" height="466" /></a></p>
<p>This tutorial is written by wordpressapi.com. If you are facing any issue then please write to me on <a href="mailto:wordpressapi@gmail.com">wordpressapi@gmail.com</a></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>
<p>Link post in your Website! &#8211; <a href="http://wordpressapi.com/2011/04/15/how-to-easily-add-google-ad-through-text-widget-in-wordpress/">how to easily add google ad through text widget in wordpress</a>, Post is Written By <a href="http://wordpressapi.com">WordPressAPI</a><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/a77e4_JeqnoLQ8OAI" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://wordpressapi.com/" target="_blank">WordPress API</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/" rel="bookmark" title="May 15, 2011">how to add post thumbnail on home page in wordpress</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/free-wordpress-themes/free-wordpress-3-0-ready-themes-of-2011-3/" rel="bookmark" title="May 1, 2011">Free wordpress 3.0 ready themes of 2011</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/" rel="bookmark" title="May 11, 2011">10 great wordpress plugins for facebook</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/free-wordpress-themes/postage-sydney/" rel="bookmark" title="July 22, 2010">Postage Sydney</a></li>
</ul>
<p><!-- Similar Posts took 33.445 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/">how to easily add google ad through text widget in wordpress</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to add post thumbnail on home page in wordpress</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/#comments</comments>
		<pubDate>Sun, 15 May 2011 21:26:49 +0000</pubDate>
		<dc:creator>WordPress API</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=9283</guid>
		<description><![CDATA[<p>http://wordpressapi.com/2011/04/13/how-to-add-post-thumbnail-on-home-page-in-wordpress/</p>
<p>Many times many wordpress blog and website users asked me about adding the post thumbnail on home page. Many people download the free themes from internet and they want to add the post thumbnail on homepage. In this tutorial&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/">how to add post thumbnail on home page in wordpress</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>http://wordpressapi.com/2011/04/13/how-to-add-post-thumbnail-on-home-page-in-wordpress/</p>
<p>Many times many wordpress blog and website users asked me about adding the post thumbnail on home page. Many people download the free themes from internet and they want to add the post thumbnail on homepage. In this tutorial I will tell you how to add post st thumbnail on homepage.</p>
<p>First step open your functions.php file from wordpress theme folder and add following code in that file.</p>
<pre>add_theme_support( 'post-thumbnails' );
</pre>
<p>Then open your index.php file and find the the_content or the_excerpt text. If you not find this text in this file then open your loop.php file from wordpress theme folder and find the_content or the_excerpt in that file. Before this tag you need to put following code in that file.</p>
<pre>&lt;div class="imgshadow"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php the_title(); ?&gt;"&gt;&lt;?php the_post_thumbnail(array(500,400), array('class' =&gt; 'imgshadowleft')); ?&gt;&lt;/a&gt;&lt;/div&gt;
</pre>
<p>You need to specify your thumbnail size Here I chosen 500×400 size for me. Normally people choose the 150×150 or 200×200 size. After that use following css code for styling.</p>
<p>put following code in your style.css file.</p>
<pre>.imgshadow{float:left; margin-right:5px}
</pre>
<h2>How to set post thumbnail for home page?</h2>
<p>Go to wordpress admin panel and create new post. you will find the “Featured Image” section bottom on right side panel. Click on “Set featured image” link.</p>
<p><a rel="attachment wp-att-6565" href="http://www.buildmeafabwebsite.co.uk/?attachment_id=6565"><img class="alignnone size-full wp-image-6565" title="featured-post-in-wordpress-by-wordpressapi" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/e8d42_featured-post-in-wordpress-by-wordpressapi.png" alt="" width="304" height="189" /></a></p>
<p>Then you need to upload the image and you will find option called “use as featured image” link. Just click on that image. For help you can refer following image.</p>
<p><a rel="attachment wp-att-6566" href="http://www.buildmeafabwebsite.co.uk/?attachment_id=6566"><img class="alignnone size-full wp-image-6566" title="set-featured-image-in-wordpress" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/3e4ee_set-featured-image-in-wordpress.png" alt="" width="679" height="522" /></a></p>
<p>This way you can easily add the post thumbnail to your home page. For more information about wordpress thumbnail image you can read the following articles. In following you can got very detailed information about wordpress thumbnail and featured images.</p>
<p><a title="Permalink to Show Post Thumbnail or Featured image in WordPress RSS Feed" rel="bookmark" href="http://wordpressapi.com/2011/01/11/show-post-thumbnail-featured-image-wordpress-rss-feed/">Show Post Thumbnail or Featured image in WordPress RSS Feed</a></p>
<p><a title="Permalink to Add the Custom Thumbnail Size to wordpress" rel="bookmark" href="http://wordpressapi.com/2011/01/10/add-custom-thumbnail-size-wordpress/">Add the Custom Thumbnail Size to wordpress</a></p>
<p><a title="Permalink to How to set post first image as featured image automatically" rel="bookmark" href="http://wordpressapi.com/2010/12/20/set-post-image-featured-image-automatically/">How to set post first image as featured image automatically</a></p>
<p><a title="Permalink to How to use the the_post_thumbnail In WordPress 3.0" rel="bookmark" href="http://wordpressapi.com/2010/06/29/how-to-use-the-the_post_thumbnail-in-wordpress-3-0/">How to use the the_post_thumbnail In WordPress 3.0</a></p>
<h4>Incoming search terms:</h4>
<ul>
<li><a title="add post thumbnail to home page" href="http://wordpressapi.com/2011/04/13/how-to-add-post-thumbnail-on-home-page-in-wordpress/">add post thumbnail to home page</a></li>
</ul>
<p><!-- SEO SearchTerms Tagging 2 Plugin --></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>
<p>Link post in your Website! &#8211; <a href="http://wordpressapi.com/2011/04/13/how-to-add-post-thumbnail-on-home-page-in-wordpress/">how to add post thumbnail on home page in wordpress</a>, Post is Written By <a href="http://wordpressapi.com">WordPressAPI</a><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/3e4ee_a8A9OnJnafs" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://wordpressapi.com/" target="_blank">WordPress API</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/" rel="bookmark" title="June 4, 2011">how to easily add google ad through text widget in wordpress</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/" rel="bookmark" title="November 1, 2010">Randomized Grid of Posts</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-more-wordpress-hacks-for-easy-life/" rel="bookmark" title="December 25, 2009">10 More WordPress Hacks for Easy Life</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-change-excerpt-length-depending-of-the-category/" rel="bookmark" title="December 10, 2009">WordPress tip : change excerpt length depending of the category</a></li>
</ul>
<p><!-- Similar Posts took 34.045 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/">how to add post thumbnail on home page in wordpress</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 great wordpress plugins for facebook</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/#comments</comments>
		<pubDate>Wed, 11 May 2011 21:27:09 +0000</pubDate>
		<dc:creator>WordPress API</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=9279</guid>
		<description><![CDATA[<p>http://wordpressapi.com/2011/04/12/10-great-wordpress-plugins-for-facebook/</p>
<p>More then 13 million sites are made in wordpress and facebook is world’s most famous social networking site. Every website and there owners want to integrate facebook functionality in there site. Here we created the list of great ten&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/">10 great wordpress plugins for facebook</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>http://wordpressapi.com/2011/04/12/10-great-wordpress-plugins-for-facebook/</p>
<p>More then 13 million sites are made in wordpress and facebook is world’s most famous social networking site. Every website and there owners want to integrate facebook functionality in there site. Here we created the list of great ten wordpress plugins which is useful for facebook integration.</p>
<p><a rel="attachment wp-att-6294" href="http://www.buildmeafabwebsite.co.uk/?attachment_id=6294"><img class="alignnone size-full wp-image-6294" title="wordpress-facebook-plugin" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/df944_wordpress-facebook-plugin.png" alt="" width="550" height="250" /></a></p>
<h2>Simple Facebook Connect</h2>
<p><a title="simple facebook connect" href="http://wordpress.org/extend/plugins/simple-facebook-connect/" target="_blank">http://wordpress.org/extend/plugins/simple-facebook-connect/</a><br />
Simple Facebook Connect is a series of plugins that let you add any sort of Facebook Connect functionality you like to a WordPress blog. This lets you have an integrated site without a lot of coding, and still letting you customize it exactly the way you’d like.</p>
<p>First, you activate and set up the base plugin, which makes your site have basic Facebook Connect functionality. Then, each of the add-on plugins will let you add small pieces of specific Facebook-related functionality, one by one.</p>
<h2>Facebook Tab Manager</h2>
<p><a title="facebook tab manager" href="http://wordpress.org/extend/plugins/facebook-tab-manager/" target="_blank">http://wordpress.org/extend/plugins/facebook-tab-manager/</a></p>
<p>The Facebook Tab Manager allows you to create landing pages and other types of content to be displayed within Facebook, particularly within the tabs that appear on Facebook business pages and pages for other types of organizations. This provides a way of putting more interesting layouts and functionality into your Facebook pages, without the need to get too deep into fancy programming.</p>
<p>The Facebook Tab Manager was specifically designed to take advantage of a recent Facebook page redesign that added support for iframe tabs on Facebook pages. Optionally, you can now also specify content to be displayed on an associated canvas page.</p>
<p>Tab content can include most any WordPress content, including output from Shortcodes and other plugin functions.</p>
<h2>Facebook Members</h2>
<p><a title="facebook members" href="http://wordpress.org/extend/plugins/facebook-members/" target="_blank">http://wordpress.org/extend/plugins/facebook-members/</a><br />
Facebook Members is a WordPres Social Plugin that enables Facebook Page owners to attract and gain Likes from their own website. It uses Facebook Like Box.</p>
<p>See how many users already like this page, and which of their friends like it too. Read recent posts from the page Like the page with one click, without needing to visit the page. Get more visitors and more traffic to your site by getting more Facebook Fans.</p>
<h2>Facebook Like for Tags</h2>
<p><a title="link for tags" href="http://wordpress.org/extend/plugins/like-for-tags/" target="_blank">http://wordpress.org/extend/plugins/like-for-tags/</a><br />
Pack more punch into Facebook Like. Expand from a one-time sharing event, to a permanent connection for ongoing updates and sharing based on post tags or categories. Now with money earning opportunities! Write your WordPress blog posts as you normally would. Define your posting with appropriate tags or categories. Once posted, it will have a Facebook Like button linked to it via the tags/categories you defined. Any reader who clicks the Facebook Like button will share the article but also receive additional updates anytime you write a post specifying the same tags.</p>
<h2>Facebook Registration Tool</h2>
<p><a title="facebook registration tool" href="http://wordpress.org/extend/plugins/facebook-registration-tool/" target="_blank">http://wordpress.org/extend/plugins/facebook-registration-tool/</a></p>
<p>This plugin integrates the Facebook Registration Tool (<a rel="nofollow" href="http://developers.facebook.com/docs/user_registration">http://developers.facebook.com/docs/user_registration</a>) into WordPress. For more information and support of this plugin, see: <a rel="nofollow" href="http://beyondwp.com/2010/12/21/facebook-registration-plugin-for-wordpress/">http://beyondwp.com/2010/12/21/facebook-registration-plugin-for-wordpress/</a></p>
<p>From beyondwp.com:</p>
<p>The Facebook Registration Tool, as announced by Facebook Developer Paul Tarjan (<a rel="nofollow" href="http://developers.facebook.com/blog/post/440">http://developers.facebook.com/blog/post/440</a>) provides a registration mechanism that is both Facebook user and Facebook hold-out friendly. Facebook Login (the tool formerly known as Facebook Connect) is a great solution to integrate Facebook into your site, but is not friendly to those users who don’t have or utilize their own Facebook accounts. By utilizing this registration tool, Facebook can automatically complete the registration form for Facebook users while supplying a good-ole fashioned form for those not wanting or able to utilize Facebook to register.</p>
<h2>Embed Facebook</h2>
<p><a title="embed facebook" href="http://wordpress.org/extend/plugins/embed-facebook/" target="_blank">http://wordpress.org/extend/plugins/embed-facebook/</a><br />
Embed Facebook lets you embed various Facebook objects (album, event, group, note, photo, or video) in a post or page. You just need to paste the URL of a Facebook object anywhere in a post or page, the plugin will automatically embed it for you. Check “Screenshots” for how the embedded objects look.</p>
<p>The object must be public (i.e. they should belong to a Facebook Page. Your personal albums are not embeddable.)</p>
<h2>WordPress Facebook Grabber</h2>
<p><a title="wordpress facebook grabber" href="http://wordpress.org/extend/plugins/wordpress-facebook-grabber/" target="_blank">http://wordpress.org/extend/plugins/wordpress-facebook-grabber/</a><br />
Wp Facebook Grabber plugin provide a way to take public content from facebook and insert in your WordPress pages or posts. It works usin graph facebook api and json php/jquery function.</p>
<p>Actually the plugin support Facebook Photo Album and Feed data from Facebook profile. You can put your feed status update and photo album from facebook everywhere in wordpress post or page, and theme it using css stylesheet.</p>
<h2>WP-Facebook Intergrate</h2>
<p><a title="wordpress facebook integrate" href="http://wordpress.org/extend/plugins/wordpress-facebook-integrate/" target="_blank">http://wordpress.org/extend/plugins/wordpress-facebook-integrate/</a><br />
Integrate wordpress with facebook, utilizing open graph and social plugins.Use Facebook social plugins and open graph to integrate Facebook into your wordpress site.</p>
<h2>Facebook Activity Feed Widget for WordPress</h2>
<p><a title="facebook activity feed widget for wordpress" href="http://wordpress.org/extend/plugins/facebook-activity-feed-widget-for-wordpress/" target="_blank">http://wordpress.org/extend/plugins/facebook-activity-feed-widget-for-wordpress/</a><br />
The FaceBook Activity Feed Widget for WordPress displays the most interesting recent activity taking place on your web site based on feedback from Facebook users.</p>
<p>The activity feed displays stories both when users like content on your site and when users share content from your site back to Facebook.</p>
<h2>Faux Facebook Connect</h2>
<p><a title="faux facebook connect" href="http://wordpress.org/extend/plugins/faux-facebook-connect/" target="_blank">http://wordpress.org/extend/plugins/faux-facebook-connect/</a><br />
Faux Facebook Connect is a basic integration to allow Facebook users to comment on a WordPress blog. It provides single sign on, and avatars. It is tuned for WordPress MU usage as it does not perform any database alterations or adds any users and is mainly a javascript integration. It requires a Facebook API Key for use. Thanks go to Beau Lebens for writing a good introduction and Adam Hupp for his inspireing WP-Facebookconnect plugin</p>
<p>Following articles is also useful for adding the facebook like button and connect code in your website.</p>
<p><a title="share button in wordpress without wordpress plugin" href="http://wordpressapi.com/2011/03/19/share-buttons-in-wordpress-without-wordpress-plugin/" target="_blank">http://wordpressapi.com/2011/03/19/share-buttons-in-wordpress-without-wordpress-plugin/</a></p>
<p><a title="generate facebook fan code" href="http://wordpressapi.com/2010/12/08/generate-facebook-fan-code/" target="_blank">http://wordpressapi.com/2010/12/08/generate-facebook-fan-code/</a></p>
<p>If you need more infromation about wordpress and facebook integration then search in my website, <a title="http://wordpressapi.com" href="http://wordpressapi.com" target="_blank">http://wordpressapi.com</a></p>
<p>Follow us on Twitter <a href="http://twitter.com/wordpressapi">WordPress API</a></p>
<p>Link post in your Website! &#8211; <a href="http://wordpressapi.com/2011/04/12/10-great-wordpress-plugins-for-facebook/">10 great wordpress plugins for facebook</a>, Post is Written By <a href="http://wordpressapi.com">WordPressAPI</a><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/df944_SA8mUh3nUMI" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://wordpressapi.com/" target="_blank">WordPress API</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/seo-articles-tips/recommended-wordpress-plugin-%e2%80%93-facebook-%e2%80%98like%e2%80%99-button/" rel="bookmark" title="June 20, 2010">Recommended WordPress Plugin – Facebook ‘Like’ Button</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-plugins/best-wordpress-plugins-for-wordpress-security-and-protection-4/" rel="bookmark" title="July 1, 2011">Best wordpress plugins for wordpress security and protection</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/seo-articles-tips/seven-must-have-wordpress-plugins-you-need-to-be-using/" rel="bookmark" title="May 6, 2011">Seven Must Have WordPress Plugins You Need to be Using</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/seo-articles-tips/seo-steps-to-take-after-installing-wordpress-theme/" rel="bookmark" title="March 23, 2010">SEO Steps to take after Installing WordPress Theme</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/web-tutorials/how-do-i-install-a-wordpress-plugin-on-my-wordpress-blog/" rel="bookmark" title="September 10, 2010">How do I install a WordPress plugin on my WordPress blog?</a></li>
</ul>
<p><!-- Similar Posts took 35.387 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/">10 great wordpress plugins for facebook</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-great-wordpress-plugins-for-facebook-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to manually update your WordPress login</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-manually-update-your-wordpress-login/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-manually-update-your-wordpress-login/#comments</comments>
		<pubDate>Mon, 02 May 2011 19:44:02 +0000</pubDate>
		<dc:creator>Wp Recipes</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=6504</guid>
		<description><![CDATA[<p>To achieve this recipe, login to your PhpMyAdmin, select your WordPress database and click on the &#8220;SQL&#8221; button to open the SQL query window.<br />
<img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/087bb_wordpress-phpmyadmin.jpg" alt="" /></p>
<p>&#160;</p>
<p>Then, paste the following code in the window textarea. Don&#8217;t&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-manually-update-your-wordpress-login/">How to manually update your WordPress login</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>To achieve this recipe, login to your PhpMyAdmin, select your WordPress database and click on the &#8220;SQL&#8221; button to open the SQL query window.<br />
<img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/087bb_wordpress-phpmyadmin.jpg" alt="" /></p>
<p>&nbsp;</p>
<p>Then, paste the following code in the window textarea. Don&#8217;t forget to modify the password and username before executing it. <strong>Also, make sure you have a backup of your database before executing any SQL queries.</strong></p>
<pre>UPDATE wp_users SET user_login = 'New login' WHERE user_login = 'Admin';</pre>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/087bb_crKS-eKhbZE" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-get-rid-of-unused-post-revisions/" rel="bookmark" title="March 17, 2010">WordPress tip: Get rid of unused post revisions</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-quickly-secure-plugin-files/" rel="bookmark" title="June 14, 2010">WordPress tip: Quickly secure plugin files</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/" rel="bookmark" title="April 19, 2011">What to do when Auto-Update Fails</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/" rel="bookmark" title="July 20, 2011">How to show an urgent message in the WordPress admin area</a></li>
</ul>
<p><!-- Similar Posts took 34.312 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-manually-update-your-wordpress-login/">How to manually update your WordPress login</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-manually-update-your-wordpress-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What to do when Auto-Update Fails</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 20:08:31 +0000</pubDate>
		<dc:creator>Diggin In</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=6616</guid>
		<description><![CDATA[<p>Ahh yeah, WordPress just rolled out another update to version 3.1.1. If you’re able to upgrade via the Admin, updating your site(s) should be a piece of cake: just log in, click a few buttons, wait a few minutes, and&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/">What to do when Auto-Update Fails</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Ahh yeah, WordPress just rolled out another update to version 3.1.1. If you’re able to upgrade via the Admin, updating your site(s) should be a piece of cake: just log in, click a few buttons, wait a few minutes, and done. The convenience of automatically updating the WordPress core, plugins, and themes is awesome, but things can go wrong once in awhile and auto-updates can fail. If this happens, getting back on track is a bit tricky, so here’s a quick guide to help restore site functionality and ensure a proper update.</p>
<p><span> </span></p>
<h3>What an auto-update failure looks like</h3>
<p>After initiating the auto-update of the WordPress core (say, from 3.1.0 to 3.1.1), the “Update WordPress” screen will begin displaying the status of each step, beginning with these messages:</p>
<ul>
<li>Downloading update from <code>http://wordpress.org/wordpress-3.1.1.zip</code>…</li>
<li>Unpacking the update…</li>
<li>Verifying the unpacked files…</li>
<li>Installing the latest version…</li>
</ul>
<p>So far so good, but even if it gets that far, there’s still a chance of failure, as seen in this recent screenshot:</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/ff143_auto-update-fail.gif" alt="[ Screenshot: Auto-Update Failure ]" /></p>
<p>The status message that appears just before “Installation Failed” explains what WordPress <em>thinks</em> is the issue, but there are cases where things go wrong and <em>no messages are displayed</em>. In either case, the user can get <strong>locked out</strong> of the site. When this happens, trying to load any of your pages – admin, blog, login, etc. – gets you the nothing but the <strong>WordPress maintenance page</strong>:</p>
<blockquote><p>Briefly unavailable for scheduled maintenance.<br />
Check back in a minute.</p></blockquote>
<p>Very frustrating, and very difficult to fix things when you can’t log in to Admin. Fortunately, you don’t need Admin to fix it and get back in. Just FTP your way to the root directory and <strong>delete</strong> the <code>.maintenance</code> file. The name begins with a dot, so if you don’t see it using your FTP program, try logging into your server’s control panel and using the file manager to find and delete. Here is a screenshot showing the <code>.maintenance</code> file in the root installation directory:</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/343c5_auto-update-file.gif" alt="[ Screenshot: The '.maintenance' File ]" /></p>
<p>This file contains a variable that is used by the <code>wp_maintenance</code> function. It looks like this:</p>
<p><code>&amp;lt;?php $upgrading = 1302115706; ?&amp;gt;</code></p>
<p>If you get locked out of your site, deleting the <code>.maintenance</code> file will fix the issue and get you back into Admin and other areas of your site. Once there, WordPress may remind you of the recent update failure by displaying the following message:</p>
<blockquote><p>An automated WordPress update has failed to complete – please attempt the update again now.</p></blockquote>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/ef10b_auto-update-fail-message.gif" alt="[ Screenshot: Auto-Update 'Fail' Message ]" /></p>
<p>At this point, you have (at least) two choices: keep trying with auto-updates or download the latest version and upload manually. Even if you decide to upgrade manually, you may want to resolve the issue and get auto-updates working for future versions.</p>
<h3>Check File Permissions</h3>
<p>Proper file permissions are the <strong>key</strong> to smooth auto-<em>anything</em>. On the Codex Page for the <a href="http://codex.wordpress.org/Dashboard_Updates_SubPanel#Troubleshooting">Dashboard Updates SubPanel</a>, the <strong>Troubleshooting</strong> section advises the following:</p>
<blockquote><p>Make sure that your entire wordpress directory is owned by the username under which your Apache server runs. For example, if your server runs as https, and your files live in /var/wordpress do a “chown -R apache.apache /var/wordpress.”</p></blockquote>
<p>In addition to this advice, you may also try changing the permissions of your <code>/upgrade/</code> directory. As seen in the following screenshot, WordPress uses the <code>/upgrade/</code> directory for a temporary file used during the installation process:</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/a9a01_auto-update-tmp.gif" alt="[ Screenshot: Upgrade Folder with Temp WP File ]" /></p>
<p>For the temporary WordPress file to be created, the <code>/upgrade/</code> directory needs to be writable by the server. To see if this is the issue, try setting the directory permissions to <code>777</code> (or CHMOD equivalent) and trying the auto-update again. If it works, you’ve resolved the issue, but you should always use the most restrictive permissions possible. This may take some research, experimenting, and/or a Help ticket with your host, but once you get it, you’re all set for auto-updates. Here is an <a href="http://www.onlineconversion.com/html_chmod_calculator.htm">Online CHMOD Calculator</a> to help with the conversion process.</p>
<h3>Turn Off Safe Mode</h3>
<p>If possible, disabling <a title="PHP Safe Mode" href="http://php.net/manual/en/features.safe-mode.php">Safe Mode</a> may help to get auto-updates working again. According to the PHP Manual, Safe Mode is deprecated as of PHP version 5.3.0:</p>
<blockquote><p>This feature has been DEPRECATED as of PHP 5.3.0.<br />
Relying on this feature is highly discouraged.</p></blockquote>
<p>Disabling Safe Mode is done in a variety of ways. If disabling through your server’s control panel isn’t possible, you can use this snippet in your <code>php.ini</code> file:</p>
<pre><code>safe_mode = Off</code></pre>
<p>Or this snippet in your Apache configuration file:</p>
<pre><code>&amp;lt;Directory /var/www/public&amp;gt;
 php_admin_flag safe_mode off
&amp;lt;/Directory&amp;gt;</code></pre>
<p>Just add that code to your <code>httpd.conf</code> file and restart Apache.</p>
<h3>Define FTP Variables in wp-config.php</h3>
<p><a title="Putting FTP Info in wp-config.php to Ease Updates" href="http://digwp.com/2010/11/ftp-in-wpconfig/">As discussed</a>, another way to get auto-updates working is to define the requisite variables in your <a title="Pimp your wp-config.php" href="http://digwp.com/2010/08/pimp-your-wp-config-php/">wp-config.php file</a>. There are <a title="WP Forums: Upgrade tries to write to root" href="http://wordpress.org/support/topic/upgrade-tries-to-write-to-root">numerous</a> <a title="WP Forums: Download failed.: Could not create Temporary file" href="http://wordpress.org/support/topic/download-failed-could-not-create-temporary-file">variations</a> on this technique, so you’ll need to do your own experimentation to get a set of definitions that work for your situation. Here is what works for me on Media Temple’s (dv) server:</p>
<pre><code>define('FS_CHMOD_FILE', 0755);
define('FS_CHMOD_DIR', 0755);
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/httpdocs/');
define('FTP_CONTENT_DIR', '/httpdocs/wp-content/');
define('FTP_PLUGIN_DIR ', '/httpdocs/wp-content/plugins/');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', '123.456.789');
define('FTP_SSL', false);</code></pre>
<p>Place that in your <code>wp-config.php</code> file, just above the line that says, “That’s all, stop editing! Happy blogging.” Don’t forget to edit the username, password, and any other variables with your own information.</p>
<p>If you’re asking yourself why bother with all of this information, it’s because WordPress auto-updates features is SO awesome that it’s worth resolving any issues to get it working. Together with automatic plugin and theme updates, auto-WordPress updates have saved us many hours of work. For some sites, auto-updates works perfectly, for others, not so much. Just remember what you’re playing for here – it looks like this and will make keeping up with WordPress updates a much more enjoyable experience.</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/93669_auto-updates-success.gif" alt="[ Screenshot: Auto-Update Success ]" /></p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/93669_eNEgV5WVCVM" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/" rel="bookmark" title="January 27, 2010">Why All-In-One SEO Deactivates</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/pimp-your%c2%a0wp-config-php/" rel="bookmark" title="September 8, 2010">Pimp your wp-config.php</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-plugins/best-wordpress-plugins-for-wordpress-security-and-protection-4/" rel="bookmark" title="July 1, 2011">Best wordpress plugins for wordpress security and protection</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/create-a-custom-database-error-page-in%c2%a0wordpress/" rel="bookmark" title="December 10, 2009">Create a Custom Database Error Page in WordPress</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/seo-articles-tips/google-has-released-a-major-ranking-algorithm-update/" rel="bookmark" title="March 6, 2011">Google has released a major ranking algorithm update</a></li>
</ul>
<p><!-- Similar Posts took 27.399 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/">What to do when Auto-Update Fails</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Randomized Grid of Posts</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 17:46:38 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=4029</guid>
		<description><![CDATA[<p>I’m all about tinkering with different ideas to display posts with WordPress. After all, it’s just a bunch of data at our fingertips! WordPress makes it easy to output whatever we need. Not long ago we experimented with making a&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/">Randomized Grid of Posts</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I’m all about tinkering with different ideas to display posts with WordPress. After all, it’s just a bunch of data at our fingertips! WordPress makes it easy to output whatever we need. Not long ago we experimented with making a <a href="http://digwp.com/2010/07/thumbnail-based-archives/">Thumbnail Based Archives</a>. Now let’s build a <a href="http://digwp.com/archives/grid/">Randomized Grid Archives</a>.</p>
<p><img class="alignnone size-full wp-image-2668" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/1f166_gridexample.jpg" alt="" width="590" height="337" /></p>
<p><span> </span></p>
<h3>1. Create a page template, publish a page</h3>
<p>We need a totally unique page template to work with. So create a new one. You know, just make a file like grid-archives.php in your theme and put this PHP comment at the top and then WordPress will recognize it. Then create a new page, pick this template, and publish it. The name and content absolutely don’t matter, just put something there so you can recognize/find it later.</p>
<pre><code>&amp;lt;?php
/*
Template Name: Thumb Archives - Grid
*/
?&amp;gt;</code></pre>
<h3>2. Loop it</h3>
<p>This is pretty much the entire page. We’ll link out to an external stylesheet for styling. Then we run a Loop for 25 posts (in our demo, we also remove our link style posts). Each post is an anchor tag, and within, the post title, the post image thumbnail, and the excerpt.</p>
<pre><code>&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
&amp;lt;meta charset="UTF-8" /&amp;gt;
&amp;lt;title&amp;gt;Grid Archives | Digging Into WordPress
&amp;lt;/title&amp;gt;
&amp;lt;link rel="stylesheet" type="text/css"
media="all" href="&amp;lt;?php bloginfo("template_url")
; ?&amp;gt;/css/gridarchives.css" /&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;div id="page-wrap"&amp;gt;
&amp;lt;?php query_posts('posts_per_page=25&amp;amp;cat=-52'); ?&amp;gt;
&amp;lt;?php if (have_posts()) : while (have_posts())
: the_post(); ?&amp;gt;
&amp;lt;a href="&amp;lt;?php the_permalink(); ?&amp;gt;" class="box
col&amp;lt;?php echo rand(2,4); ?&amp;gt;"&amp;gt;
&amp;lt;span class="title"&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;img src="&amp;lt;?php echo get_post_meta($post-&amp;gt;ID,
'PostThumb', true); ?&amp;gt;" alt="" /&amp;gt;
&amp;lt;span class="ex"&amp;gt;&amp;lt;?php the_excerpt(); ?&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/a&amp;gt;
&amp;lt;?php endwhile; endif; ?&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;</code></pre>
<h3>3. Masonize</h3>
<p>Notice in the HTML above we echo’d out a random number between 2 and 4 as part of a class name. The results classes will be: col-2, col-3, and col-4. These represent columns. So each link box is “randomized” based on this class name. Some post link boxes are 2 columns wide, others 3, others 4. Font sizing and thumbnail sizing also adjusts accordingly.</p>
<pre><code>.box { margin: 10px; float: left; }
.box:hover { outline: 2px solid white; }
.box:hover .title { background: none; }
.box:hover .ex { background: none; color: white; }
.box:hover img { opacity: 0.4; }

.col2 { width: 180px; }
.col3 { width: 280px; }
.col4 { width: 380px; }

.col2 img { max-width: 80px; float:
right; margin: 0 0 2px 10px; }
.col3 img { max-width: 100px; float:
left; margin: 0 10px 2px 0; }
.col4 img { max-width: 120px; float:
right; margin: 0 0 2px 10px; }

.title { background: #237abe; color:
white; display: block; padding: 10px;
overflow: hidden; }
.col2 .title { font-size: 16px; }
.col3 .title { font-size: 18px; }
.col4 .title { font-size: 20px; }

.ex { background: white; color: #222;
display: block; padding: 10px; }
.col2 .ex { font-size: 11px; }
.col3 .ex { font-size: 12px; }
.col4 .ex { font-size: 13px; }</code></pre>
<p>So each of those post link boxes is just floated to the left. That’s going to make a pretty ragged and nasty layout all by itself, because each box will be a different height depending on the length of the title and excerpt. No problem though, we’re going to rearrange the boxes using the <a href="http://desandro.com/resources/jquery-masonry/">jQuery Masonry plugin</a> by David DeSandro. We’ll just call jQuery, the plugin, and the write a quick script to call it. This can go pretty much anywhere on the page. Typically jQuery is run on DOM ready, but in this case we are waiting for the window’s load event, because we want to wait for the thumbnails to load before masonizing.</p>
<pre><code>&amp;lt;script src='http://ajax.googleapis.com
/ajax/libs/jquery/1.4/jquery.min.js'&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;script src='&amp;lt;?php bloginfo("template_
url"); ?&amp;gt;/js/jquery.masonry.min.js'&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
 $(window).load(function() {
   $("#page-wrap").masonry({
      columnWidth: 100,
      animate: true,
      animationOptions: {
          duration: 300,
          queue: false
      }
  });
 });
&amp;lt;/script&amp;gt;</code></pre>
<h3>Enjoy!</h3>
<p><a href="http://digwp.com/archives/grid/">Here is ours.</a> Let us know if you play with this on your own site at all.</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/1f166_NiM8un9qmxM" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/" rel="bookmark" title="December 26, 2009">WordPress tip : Better page navigation</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/" rel="bookmark" title="May 15, 2011">how to add post thumbnail on home page in wordpress</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/" rel="bookmark" title="December 22, 2009">10 CSS Snippets to Save Precious Time</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-modify-lists-like-%e2%80%98categories%e2%80%99-and-%e2%80%98blogroll%e2%80%99-in-wordpress/" rel="bookmark" title="December 10, 2009">How to modify lists like ‘Categories’ and ‘Blogroll’ in WordPress?</a></li>
</ul>
<p><!-- Similar Posts took 27.236 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/">Randomized Grid of Posts</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress tip : Fetch and display RSS feeds</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 18:57:11 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=1672</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>Simply paste the following code where you want the feed to be displayed. Don&#8217;t forget to define feed url at line 4.</p>
<pre>&#60;?php if(function_exists('fetch_feed')) {

	include_once(ABSPATH.WPINC.'/feed.php');
	$feed</pre><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/">WordPress tip : Fetch and display RSS feeds</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>Simply paste the following code where you want the feed to be displayed. Don&#8217;t forget to define feed url at line 4.</p>
<pre>&lt;?php if(function_exists('fetch_feed')) {

	include_once(ABSPATH.WPINC.'/feed.php');
	$feed = fetch_feed('http://feeds.
feedburner.com/catswhoblog');

	$limit = $feed-&gt;get_item_quantity(7);
 // specify number of items
	$items = $feed-&gt;get_items(0, $limit
// create an array of items

}
if ($limit == 0) echo '
&lt;div&gt;The feed is either empty or unavailable.&lt;/div&gt;';
else foreach ($items as $item) :
?&gt;

&lt;div&gt;
	&lt;a href="&lt;?php echo
item-&gt;get_permalink(); ?&gt;"
	  title="&lt;?php
echo $item-&gt;get_date('j F Y @ g:i a'); ?&gt;"&gt;
		&lt;?php
 echo $item-&gt;get_title(); ?&gt;
	&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
	&lt;?php echo
substr($item-&gt;get_description(),
 0, 200); ?&gt;
	&lt;span&gt;[...]&lt;/span&gt;
&lt;/div&gt;

&lt;?php endforeach; ?&gt;</pre>
<p><strong><em>Thanks to <a href="http://digwp.com/2009/11/import-and-display-feeds-in-wordpress">Jeff Starr from Digging into WordPress</a> for this great tip! Have you checked out <a href="http://www.catswhocode.com/blog/diw.html">Jeff&#8217;s book</a> by the way? It&#8217;s great! (<a href="http://www.catswhoblog.com/digging-into-wordpress-book-review">Review here</a>)</em></strong></p>
<p><em> </em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/7894e_xrgqJEjI_FE" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/" rel="bookmark" title="January 25, 2010">Display most recent comments with Gravatar</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-modify-lists-like-%e2%80%98categories%e2%80%99-and-%e2%80%98blogroll%e2%80%99-in-wordpress/" rel="bookmark" title="December 10, 2009">How to modify lists like ‘Categories’ and ‘Blogroll’ in WordPress?</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/web-tutorials/the-right-way-to-add-custom-list-markers-to-unordered-lists/" rel="bookmark" title="December 25, 2009">The Right Way to Add Custom List Markers to Unordered Lists</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-hack-get-popular-posts-by-comments-count/" rel="bookmark" title="June 11, 2010">WordPress hack: Get popular posts by comments count</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/" rel="bookmark" title="December 26, 2009">WordPress tip : Better page navigation</a></li>
</ul>
<p><!-- Similar Posts took 26.086 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/">WordPress tip : Fetch and display RSS feeds</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizing WordPress Post Navigation</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 18:28:07 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=1984</guid>
		<description><![CDATA[<p>Implementing a solid set of navigational links for your WordPress site is one of the best ways to encourage visitors to stick around awhile and check out additional content. As discussed in our <a title="Definitive Guide to WordPress Page Navigation"&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/">Optimizing WordPress Post Navigation</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Implementing a solid set of navigational links for your WordPress site is one of the best ways to encourage visitors to stick around awhile and check out additional content. As discussed in our <a title="Definitive Guide to WordPress Page Navigation" href="http://digwp.com/2009/08/wordpress-page-navigation/">definitive guide to WordPress post navigation</a>, there are essentially three different types of navigational tags for WordPress:</p>
<ul>
<li>Index and archive navigation: <a title="posts_nav_link()" href="http://digwp.com/2009/08/wordpress-page-navigation/#postsnavlink">posts_nav_link()</a></li>
<li>Index and archive navigation: <a title="previous_posts_link() and next_posts_link()" href="http://digwp.com/2009/08/wordpress-page-navigation/#previouspostslink">previous_posts_link() and next_posts_link()</a></li>
<li>Single-view posts navigation: <a title="previous_post_link() and next_post_link()" href="http://digwp.com/2009/08/wordpress-page-navigation/#previouspostlink">previous_post_link() and next_post_link()</a></li>
</ul>
<p>Without repeating ourselves, suffice it to say that <code>previous_posts_link</code> and <code>next_posts_link</code> are perfect for setting up separate links for index, category, and archive pages. Likewise, <code>previous_post_link</code> and <code>next_post_link</code> are perfect for setting up separate links for single-view post navigation.</p>
<p>Now that we’re on the same page, so to speak, let’s look at how these tags are typically used and how to improve and optimize their functionality..</p>
<p><span> </span></p>
<h3>Improving the <code>next_posts_link</code> and <code>previous_posts_link</code> (for archive views)</h3>
<p>Here are the archive/category navigation links as provided in the default theme that is packaged with WordPress:</p>
<pre><code>&amp;lt;div class="navigation"&amp;gt;
	&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older Entries') ?&amp;gt;
&amp;lt;/div&amp;gt;
	&amp;lt;div class="alignright"&amp;gt;
&amp;lt;?php previous_posts_link('Newer Entries &amp;amp;raquo;') ?&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;</code></pre>
<p>Functionally, this setup works great — the previous-post link is displayed <em>only</em> when there are previous posts, and likewise the next-post link is displayed <em>only</em> when there are newer posts. As convenient as this is, it doesn’t help us with the accompanying markup used to display the links. Any <acronym title="Cascading Style Sheets">CSS</acronym> styles applied to the <code>&amp;lt;div&amp;gt;</code>s in our example will be displayed even when the links themselves aren’t displayed. This can result in several issues, including:</p>
<ul>
<li>Padding and margins may prevent proper display when links are missing</li>
<li>Background images used to enhance the navigational links will still be displayed</li>
<li>Additional text and/or characters will still be displayed even when links absent</li>
<li>Use of any markup other than <code>&amp;lt;div&amp;gt;</code>s may result in validation errors when left empty</li>
</ul>
<p>And we’re not just talking about the front page and last page here —  any category, tag, search, date, or author archive will also display botched navigational elements and design flaws when previous and next posts are unavailable. Your main index may always have previous posts, but what about that guest author archive, 2005 archive, and search results? Such pages are frequently one of a kind. Even worse, by defualt, your Home page will <em>never</em> have a page after it, which means a broken navigational element right there on the most important page of your site. Not good.</p>
<p>The easiest way that I have found to prevent this from happening when the “next” link is not generated is to simply test the <code>$paged</code> variable for a value greater than <code>1</code>:</p>
<pre><code>&amp;lt;?php if ($paged &amp;gt; 1) { ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
	&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older Entries') ?&amp;gt;
&amp;lt;/div&amp;gt;
	&amp;lt;div class="alignright"&amp;gt;
&amp;lt;?php previous_posts_link('Newer Entries &amp;amp;raquo;') ?&amp;gt;
&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php } ?&amp;gt;</code></pre>
<p>By checking if there are more posts to display before calling the navigational code, this technique will prevent empty elements from wrinkling your home page and archive pages. Another way of doing this is shared by <a title="Conditional page/post navigation links in WordPress (redux)" href="http://www.ericmmartin.com/conditional-pagepost-navigation-links-in-wordpress-redux/">Eric Martin</a>. Just place this snippet into your active theme’s <code>functions.php</code> file:</p>
<pre><code>// return TRUE if more than one page exists
function show_posts_nav() {
	global $wp_query;
	return ($wp_query-&amp;gt;max_num_pages &amp;gt; 1);
}</code></pre>
<p>And then use the function to conditionally display navigational code in your <code>archive.php</code> and other archive-view template files:</p>
<pre><code>&amp;lt;?php if (show_posts_nav()) : ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
		&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older Entries') ?&amp;gt;
&amp;lt;/div&amp;gt;
		&amp;lt;div class="alignright"&amp;gt;
&amp;lt;?php previous_posts_link('Newer Entries &amp;amp;raquo;') ?&amp;gt;
&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php endif; ?&amp;gt;</code></pre>
<p>Not sure if there is any benefit to adding the extra code in the <code>functions.php</code> file, but I thought I would share that technique with you as another possible solution (hey you never know).</p>
<p>Also, a great way to improve the functionality and presentation of your blog is to provide some alternate navigational elements to help keep things flowing and balanced on the front pages of your site. For example, at <a title="Digital Design and Dialogue" href="http://perishablepress.com/">Perishable Press</a>, if the “next” link isn’t displayed, I provide a link to my site Archives:</p>
<pre><code>&amp;lt;?php if ($paged &amp;gt; 1) { ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
		&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older Entries') ?&amp;gt;
&amp;lt;/div&amp;gt;
		&amp;lt;div class="alignright"&amp;gt;
&amp;lt;?php previous_posts_link('Newer Entries &amp;amp;raquo;') &amp;lt;div&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php } else { ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
		&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older Entries') ?&amp;gt;
&amp;lt;/div&amp;gt;
		&amp;lt;div class="alignright"&amp;gt;
&amp;lt;a href="http://perishablepress.com/press
/archives/"&amp;gt;Site Archives &amp;amp;raquo;&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php } ?&amp;gt;</code></pre>
<p>And of course, anything is possible here; the key is to keep things consistent, logical, and well-styled. Now let’s see how to improve navigational display for single-post views.</p>
<h3>Improving the <code>next_post_link</code> and <code>previous_post_link</code> (for single views)</h3>
<p>Fortunately, the situation is much improved for single-post navigation. By default, the <code>next_post_link</code> and <code>previous_post_link</code> provide parameters that enable us to avoid the “empty-element” syndrome. Let’s take a look at these parameters:</p>
<p><code>&amp;lt;?php next_post_link('format',</code></p>
<p><code>'link','in_same_cat','excluded_categories')</code></p>
<p><code>; ?&amp;gt;</code><br />
<code>&amp;lt;?php previous_post_link('format','link',</code></p>
<p><code>'in_same_cat','excluded_categories'); ?&amp;gt;</code></p>
<p>The <code>format</code> and <code>link</code> parameters enable us to do something like this:</p>
<pre><code>&amp;lt;div class="navigation"&amp;gt;

	&amp;lt;?php previous_post_link('
&amp;lt;div class="alignleft"&amp;gt;Previous entry:
 %link&amp;lt;/div&amp;gt;', '%title'); ?&amp;gt;
	&amp;lt;?php next_post_link('&amp;lt;div
class="alignright"&amp;gt;Next entry: %link
&amp;lt;/div&amp;gt;', '%title'); ?&amp;gt;

&amp;lt;/div&amp;gt;</code></pre>
<p>Here we have replicated the markup in our previous examples, but have done so conditionally, such that the markup will only be displayed when the corresponding link is displayed, thereby enabling us to avoid empty elements when either the previous or next post-link is not displayed. As you can see, the single-post nav tags enable us to include the surrounding <acronym title="(eXtensible) Hypertext Markup Language">(X)HTML</acronym> and text <em>within</em> the function itself. We can do similar tricks with the actual link title. Check out our <a title="Definitive Guide to WordPress Page Navigation" href="http://digwp.com/2009/08/wordpress-page-navigation/">definitive guide to post navigation</a> for more information.</p>
<h3>Conditional navigational display for single posts</h3>
<p>Just as we did with the archive nav tags (<code>next_posts_link</code> and <code>previous_posts_link</code>), we can implement some conditional functionality to display alternate navigational links when viewing the first and last posts in any archive view. For example, if I also wanted to provide a link to my Site Archives when the “next” and/or “previous” links were <strong>not</strong> displayed, I could do so using the following code:</p>
<pre><code>&amp;lt;div class="navigation"&amp;gt;

	&amp;lt;?php previous_post_link('&amp;lt;div
class="alignleft"&amp;gt;Previous entry: %link
&amp;lt;/div&amp;gt;', '%title'); ?&amp;gt;
	&amp;lt;?php if(!get_adjacent_post(false,
'', true)) {
		echo '&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;a href="http://perishablepress.com/press/archives/"&amp;gt;
Site Archives&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;';
	} ?&amp;gt;

	&amp;lt;?php next_post_link('&amp;lt;div class="alignright"&amp;gt;
Next entry: %link&amp;lt;/div&amp;gt;', '%title'); ?&amp;gt;
	&amp;lt;?php if(!get_adjacent_post(false, '', false)) {
		echo '&amp;lt;div class="alignright"&amp;gt;&amp;lt;a href="
http://perishablepress.com/press/archives/"&amp;gt;Site Archives
&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;';
	} ?&amp;gt;

&amp;lt;/div&amp;gt;</code></pre>
<p>Here we are using the <code>get_adjacent_post</code> function to determine whether or not there is a post before/after the current post. This enables us to conditionally display some sort of fallback navigation in the first- and last-post case. The <code>get_adjacent_post</code> tag accepts the following parameters:</p>
<ul>
<li><code>$in_same_cat</code> – specifies whether or not the adjacent post should be in the same category</li>
<li><code>$excluded_categories</code> – a comma-delimited list of categories for which the adjacent post should not belong</li>
<li><code>$previous</code> – specifies whether the previous post should be displayed</li>
</ul>
<p>That does it for the single-post views. Let’s wrap things up with a way to consolidate and streamline the single and archive navigational methods..</p>
<h3>Optimize your theme’s navigational code</h3>
<p>Finally, here is a nice way to clean up your theme files and source code. The first step is to streamline production by <a title="Getting More Fine-Grained with Includes" href="http://digwp.com/2009/07/getting-more-fine-grained-with-includes/">getting more fine-grained with includes</a>. This basically means that you can clean things up and save time/effort by moving your navigational code to its own file, named something like “<code>navigation.php</code>” or similar. You would then remove your nav code from your other template files and consolidate them all into that one location. You would then include <code>navigation.php</code> in any theme file where you want the navigation section to appear:</p>
<pre><code>&amp;lt;?php include_once("navigation.php"); ?&amp;gt;</code></pre>
<p>This technique makes maintaining and modifying your code a breeze. And, you can even streamline things further by using some conditional logic to display either <em>archive</em> or <em>single</em> navigation depending on the current page being viewed:</p>
<pre><code>&amp;lt;?php if (is_single()) : ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
		&amp;lt;?php previous_post_link('
&amp;lt;div class="alignleft"&amp;gt;Previous entry: %link
div&amp;gt;', '%title'); ?&amp;gt;
		&amp;lt;?php next_post_link('&amp;lt;div
 class="alignright"&amp;gt;Next entry: %link&amp;lt;/div&amp;gt;
', '%title'); ?&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php else : ?&amp;gt;

	&amp;lt;div class="navigation"&amp;gt;
		&amp;lt;div class="alignleft"&amp;gt;
&amp;lt;?php next_posts_link('&amp;amp;laquo; Older
Entries') ?&amp;gt;&amp;lt;/div&amp;gt;
		&amp;lt;div class="alignright"&amp;gt;
&amp;lt;?php previous_posts_link('Newer
Entries &amp;amp;raquo;') ?&amp;gt;&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;

&amp;lt;?php endif; ?&amp;gt;</code></pre>
<p>This is a great way of staying organized and reducing your workload during theme development and maintenance.</p>
<h3>Wrap up</h3>
<p>The tips and tricks in this article will help you create a consistent, logical, and design-friendly set of navigational links for your next theme design. In the process, you can also streamline production by consolidating your code into a single file and using conditional logic to deliver the appropriate code.</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/9baef_1_PCmnY3_Yk" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/" rel="bookmark" title="December 26, 2009">WordPress tip : Better page navigation</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/nextprevious-post-navigation-outside-of-the-wordpress%c2%a0loop/" rel="bookmark" title="July 26, 2010">Next/Previous Post Navigation Outside of the WordPress Loop</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/two-ways-to-limit-the-number-of-posts-without-a%c2%a0plugin/" rel="bookmark" title="December 14, 2009">Two Ways to Limit the Number of Posts without a Plugin</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/" rel="bookmark" title="November 1, 2010">Randomized Grid of Posts</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-modify-lists-like-%e2%80%98categories%e2%80%99-and-%e2%80%98blogroll%e2%80%99-in-wordpress/" rel="bookmark" title="December 10, 2009">How to modify lists like ‘Categories’ and ‘Blogroll’ in WordPress?</a></li>
</ul>
<p><!-- Similar Posts took 29.373 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/">Optimizing WordPress Post Navigation</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

