<?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>Ampercent &#187; Wordpress</title>
	<atom:link href="http://www.ampercent.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ampercent.com</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 08:58:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>5 Thing To Remember Before Using Popups On WordPress</title>
		<link>http://www.ampercent.com/make-wordpress-popups-less-obtrusive/9956/</link>
		<comments>http://www.ampercent.com/make-wordpress-popups-less-obtrusive/9956/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 13:35:00 +0000</pubDate>
		<dc:creator>guest</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9956</guid>
		<description><![CDATA[<p>Popups are a great way to get your message read by your visitors, yet it is one of the most annoying elements that scare your visitors away. Here are 5 things that you must consider before using popups.</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/make-wordpress-popups-less-obtrusive/9956/">5 Thing To Remember Before Using Popups On WordPress</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/transfer-wordpresscom-blog-self-hosted-wordpress-premium-service/8661/' rel='bookmark' title='WordPress Adds Guided Transfers of WordPress.com blogs To Self Hosted WordPress'>WordPress Adds Guided Transfers of WordPress.com blogs To Self Hosted WordPress</a></li>
<li><a href='http://www.ampercent.com/dropboc-cdn-plugin-wordpress-helps-reduce-sites-bandwidth/7434/' rel='bookmark' title='Dropbox CDN Plugin For WordPress Helps Reduce Your Site&#8217;s Bandwidth'>Dropbox CDN Plugin For WordPress Helps Reduce Your Site&#8217;s Bandwidth</a></li>
<li><a href='http://www.ampercent.com/mozillas-browser-id-login/9628/' rel='bookmark' title='Mozilla&#8217;s Browser ID Login System &#8211; One Username And Password is All You Have To Remember'>Mozilla&#8217;s Browser ID Login System &#8211; One Username And Password is All You Have To Remember</a></li>
<li><a href='http://www.ampercent.com/wordpress-0-posts-database-error/9751/' rel='bookmark' title='WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked'>WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked</a></li>
<li><a href='http://www.ampercent.com/add-nofollow-links-from-wordpress-post-editor/7179/' rel='bookmark' title='Add Nofollow Links From WordPress Post Editor'>Add Nofollow Links From WordPress Post Editor</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Every now and then there might be a popup you love, but more often than not, users hate popups. Still, since popups are very efficient in gaining newsletter subscribers and in selling in general, you might bet that popups are here to stay. The question is how to make popups less obtrusive, so that they are still present, yet not that annoying. Here are some tips how to do it.</p>
<p><img class="aligncenter size-full wp-image-9957" title="" src="http://www.ampercent.com/wp/wp-content/uploads/wordpress-popups.png" alt="wordpress" width="640" height="348" /></p>
<h3>Don&#8217;t Display Popups Right at Startup</h3>
<p>One of the really irritating moments is when a huge popup splashes right into your face even before you are given the chance to have a glimpse at the site. What is more, such a popup can make users leave your site altogether rather than subscribe for your newsletter and continue to the site itself. This is why you should avoid using popups at startup – frequently they simply scare your visitors (who could otherwise buy something from inside your site) away.</p>
<h3>Select Proper Sizes</h3>
<p>Size matters with popups. Obviously, too large is more obtrusive, so try to keep your popups small. Your options here vary depending on the abilities of the WordPress popup plugin you are using but a size of 200&#215;300 (or less) should be more than sufficient.</p>
<h3>Carefully Select the Display Schedule</h3>
<p>The next most irritating thing after a popup at startup is a popup at each page refresh. Well, it is true that fewer visitors will experience the pain simply because they would leave in an instant without browsing more pages, but if you don&#8217;t want to scare all your visitors away, don&#8217;t even think of such a nag as a popup at each page refresh. A popup at each 5 or 10 pages, or that is displayed at predefined events, isn&#8217;t that obtrusive, so you&#8217;d better stick with a similar display schedule.</p>
<h3>Include an Option Not to Display More Popups</h3>
<p>For some users even a popup once in 5 or 10 pages might be too much. This is why, after you have displayed a popup once, give the user a choice not to see more of them.</p>
<h3>Consider Popup Alternatives</h3>
<p>Popups aren&#8217;t the only way to make your message visible. For instance, sidebar opt-in forms are a good alternative when you want to collect newsletter subscribers. In-content opt-in forms also work for the purpose. Gathering email addresses from comments (with the commenter&#8217;s consent, of course) is yet one more alternative for building a mailing list.</p>
<p>There are many more ways to make popups less obtrusive and more user-friendly in general. For instance, it goes without saying that a popup must have a Close button, so if the user doesn&#8217;t want to subscribe, he or she can continue to the site. It is all these small details that make or break a popup. As a result, it is better to fine-tune these details in order to maximize user experience and the efficiency of popups as a whole.</p>
<p><em>This is a guest post by Ada. Ada is the Blogger Relations Manager at <a href="http://winkpress.com/" target="_blank">WinkPress</a> – a web resource about WordPress, its themes, and plugins. If you visit our site, you will learn more about <a href="http://winkpress.com/newsletter/subscribe/popup" target="_blank">WordPress popup plugins</a> and many other WordPress plugins you can put to use on your site.</em></p>
<p><em>Image Credit: <a href="http://www.flickr.com/photos/stickergiant/" target="_blank">John Fischer</a></em></p>
<div class="outro">Hoping to post an article on this blog? Check out the <a href="http://www.ampercent.com/guest-blogging/" target="_blank">guest posting guidelines</a> and <a href="http://www.ampercent.com/contact/" target="_blank">contact us</a> right away.</div>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/transfer-wordpresscom-blog-self-hosted-wordpress-premium-service/8661/' rel='bookmark' title='WordPress Adds Guided Transfers of WordPress.com blogs To Self Hosted WordPress'>WordPress Adds Guided Transfers of WordPress.com blogs To Self Hosted WordPress</a></li>
<li><a href='http://www.ampercent.com/dropboc-cdn-plugin-wordpress-helps-reduce-sites-bandwidth/7434/' rel='bookmark' title='Dropbox CDN Plugin For WordPress Helps Reduce Your Site&#8217;s Bandwidth'>Dropbox CDN Plugin For WordPress Helps Reduce Your Site&#8217;s Bandwidth</a></li>
<li><a href='http://www.ampercent.com/mozillas-browser-id-login/9628/' rel='bookmark' title='Mozilla&#8217;s Browser ID Login System &#8211; One Username And Password is All You Have To Remember'>Mozilla&#8217;s Browser ID Login System &#8211; One Username And Password is All You Have To Remember</a></li>
<li><a href='http://www.ampercent.com/wordpress-0-posts-database-error/9751/' rel='bookmark' title='WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked'>WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked</a></li>
<li><a href='http://www.ampercent.com/add-nofollow-links-from-wordpress-post-editor/7179/' rel='bookmark' title='Add Nofollow Links From WordPress Post Editor'>Add Nofollow Links From WordPress Post Editor</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/make-wordpress-popups-less-obtrusive/9956/">5 Thing To Remember Before Using Popups On WordPress</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/make-wordpress-popups-less-obtrusive/9956/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Migrate WordPress Media Directory From One Folder To Another &#8211; A Guide</title>
		<link>http://www.ampercent.com/moving-wordpress-images-media-folder/9845/</link>
		<comments>http://www.ampercent.com/moving-wordpress-images-media-folder/9845/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 20:11:14 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9845</guid>
		<description><![CDATA[<p>Do you want to move your WordPress image upload directory to a new address? Do you want to host images in a subdomain and want to update all the old posts with new URL's? Here is a step by step guide which will help you migrate your WordPress Image upload directory to any folder within your domain.</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/moving-wordpress-images-media-folder/9845/">How To Migrate WordPress Media Directory From One Folder To Another &#8211; A Guide</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/' rel='bookmark' title='How To Move The Core WordPress Files Of Your Blog to a Custom Directory'>How To Move The Core WordPress Files Of Your Blog to a Custom Directory</a></li>
<li><a href='http://www.ampercent.com/wordpress-store-blog-post-images-different-folder-subdomain/908/' rel='bookmark' title='WordPress tip-Store Blog post Images in a different Folder or Subdomain'>WordPress tip-Store Blog post Images in a different Folder or Subdomain</a></li>
<li><a href='http://www.ampercent.com/bulk-image-uploader-wordpress-post-editor/8705/' rel='bookmark' title='Add Multiple Images To WordPress Post Editor By Drag And Drop'>Add Multiple Images To WordPress Post Editor By Drag And Drop</a></li>
<li><a href='http://www.ampercent.com/protecti-wp-admin-htaccess/6810/' rel='bookmark' title='Protecting The Wp-admin Folder With HTACCESS'>Protecting The Wp-admin Folder With HTACCESS</a></li>
<li><a href='http://www.ampercent.com/prevent-indexing-wordpress-image-attachment-pages/9082/' rel='bookmark' title='WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO'>WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default, WordPress stores all image uploads in the <em>wp-content/uploads</em> folder of your website.</p>
<p>The images and media uploads can be further organized into nested sub-folders on the basis of month and year, this setting is available under Settings &gt; Media within your WordPress administration area.</p>
<p>The default image upload folder works just fine, but there are situations when you may want to use a different folder for storing the images that are used in your blog posts and pages. Large websites, often use a <a href="http://www.ampercent.com/wordpress-store-blog-post-images-different-folder-subdomain/908/">sub-domain</a> or a separate web server for storing and serving the images, while  <a href="http://www.ampercent.com/using-amazon-s3-content-delivery-network-hosting-images/9409/">Amazon S3</a>, MaxCDN are some good services that can be used to fetch images and other static files via a <a href="http://www.ampercent.com/google-page-speed-service-cdn/9579/">content delivery network</a>.</p>
<h3>The Problem Of Moving All Images From One Directory To Another Directory In WordPress</h3>
<p>Let&#8217;s say you have stored images, videos and all static files at <em>files.domain.com</em> instead of the default image upload location <em>wp-content/uploads/, </em>which ships out of the box with WordPress. This was your initial setting 2 years back and during these two years, you have written 2500 blog posts and uploaded 2000 images (just an example).</p>
<p>Now your website has a decent amount of traffic and you want to speed up the loading time by fetching images via a cached folder or an external content delivery network such as Amazon S3 or MaxCDN.</p>
<p>There are two problems with images that are stored in a sub domain of your website or in any other folder that is outside the default image upload directory:</p>
<p>1. WordPress caching plugins such as <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a> and <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> can not cache files that are in a sub domain. These plugins will only cache internal files that are present within your WordPress media uploads folder ( the folder you have defined under Settings &gt; Media).</p>
<p>2. You can surely download all the images from your image server and re-upload it to your external content delivery network. But the question is &#8211; how will you update all the image URL&#8217;s that is contained within all the old blog posts?</p>
<h3>Move Images From One Directory To Another Without Breaking Your Blog Posts</h3>
<p>Hence, moving all the images from one folder to another folder is just half the work done. You have to replace the older image URL&#8217;s with their newer counterparts, the following steps will tell you how to do that:</p>
<p>1. Use <a href="http://filezilla-project.org/">Filezilla</a> or another FTP client to download the entire image upload directory on your computer.</p>
<p>2. Create the target folder and re-upload the entire image directory to its new target location on the same domain. It is advised to use the default image upload directory, if you are considering using caching plugins such as W3 Total cache.</p>
<p><strong>For example:</strong> Lets say your older image folder is <em>img.domain.com/images/</em> and you want to move all the images from this subdomain to <em>wp-content/uploads/. </em>Create a new folder at wp-content/uploads/old-images/ and upload the entire image directory here.</p>
<p>3. Be careful, you must <strong>preserve the file names of images and their corresponding folder structure</strong>. A single mistake in the name of any directory and the whole procedure will fail.</p>
<p>4. Take a <a href="http://www.ampercent.com/backup-wordpress-blog-database/2053/">back up of your WordPress database</a>.</p>
<p>5. Install the <a href="http://wordpress.org/extend/plugins/velvet-blues-update-urls/">Velvet Blues Update URL&#8217;s plugin</a>. This script lets you perform a search and replace for URL&#8217;s in your WordPress database.</p>
<p><img class="aligncenter size-full wp-image-9847" title="" src="http://www.ampercent.com/wp/wp-content/uploads/migrate-images-old-new-directory.png" alt="move images to new directory in WordPress" width="585" height="359" /></p>
<p>6. In the Old URL field, enter the base URL of your old media directory. In the new URL field, enter the base URL of your new media directory.</p>
<p><strong>For example: </strong><em>http://img.domain.com/images/ </em>will go in the old URL text field, while<em> www.domain.com/wp-content/uploads/old-images/ </em>will go in the new URL text field.</p>
<p>7. Click &#8220;Update URL&#8217;s Now&#8221; and its done. Load an old post and it should fetch the image from its new media directory.</p>
<p>If you find that the images are appearing broken and not loading at all, there is a high chance that you have messed up the image URL&#8217;s with a wrong address. In that case, restore the database backup and start the above procedure all over again.</p>
<p>The above technique can be used with external content delivery networks as well. All you have to do is get the newer base URL from the external CDN and replace it.</p>
<p>One word of caution: double check the folder structure in the target location. If its not a mirror copy of your older image server, updating the old image addresses to their newer counterparts won&#8217;t work.</p>
<p>Related tutorials:</p>
<p>1. <a href="http://www.ampercent.com/transfer-wordpress-blog-from-one-host-to-another/4726/">How to migrate from one hosting provider to another</a><br />
2. <a href="http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/">How to move core WordPress files to a different folder within your domain</a></p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/' rel='bookmark' title='How To Move The Core WordPress Files Of Your Blog to a Custom Directory'>How To Move The Core WordPress Files Of Your Blog to a Custom Directory</a></li>
<li><a href='http://www.ampercent.com/wordpress-store-blog-post-images-different-folder-subdomain/908/' rel='bookmark' title='WordPress tip-Store Blog post Images in a different Folder or Subdomain'>WordPress tip-Store Blog post Images in a different Folder or Subdomain</a></li>
<li><a href='http://www.ampercent.com/bulk-image-uploader-wordpress-post-editor/8705/' rel='bookmark' title='Add Multiple Images To WordPress Post Editor By Drag And Drop'>Add Multiple Images To WordPress Post Editor By Drag And Drop</a></li>
<li><a href='http://www.ampercent.com/protecti-wp-admin-htaccess/6810/' rel='bookmark' title='Protecting The Wp-admin Folder With HTACCESS'>Protecting The Wp-admin Folder With HTACCESS</a></li>
<li><a href='http://www.ampercent.com/prevent-indexing-wordpress-image-attachment-pages/9082/' rel='bookmark' title='WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO'>WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/moving-wordpress-images-media-folder/9845/">How To Migrate WordPress Media Directory From One Folder To Another &#8211; A Guide</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/moving-wordpress-images-media-folder/9845/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked</title>
		<link>http://www.ampercent.com/wordpress-0-posts-database-error/9751/</link>
		<comments>http://www.ampercent.com/wordpress-0-posts-database-error/9751/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 20:58:09 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9751</guid>
		<description><![CDATA[<p>A few hours back I opened this site and was shocked to see that there were no posts at all. All the blog posts I have written over these years have vanished, they were not present in the homepage and neither they were accessible from the tag, category, author and other archive pages. At first [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/wordpress-0-posts-database-error/9751/">WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/google-shows-hacked-site-notifications-search-results/7612/' rel='bookmark' title='Google Shows Hacked Site Notification In Search Results'>Google Shows Hacked Site Notification In Search Results</a></li>
<li><a href='http://www.ampercent.com/more-posts-category-pages-wordpress/1116/' rel='bookmark' title='Customize the Number of Posts On Different Pages of your WordPress Blog'>Customize the Number of Posts On Different Pages of your WordPress Blog</a></li>
<li><a href='http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/' rel='bookmark' title='WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag'>WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
<li><a href='http://www.ampercent.com/exclude-category-posts-blog-homepage/1318/' rel='bookmark' title='Exclude Posts of Certain Categories From The Homepage Of A WordPress Blog'>Exclude Posts of Certain Categories From The Homepage Of A WordPress Blog</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A few hours back I opened <a href="http://www.ampercent.com" target="_blank">this site</a> and was shocked to see that there were no posts at all. All the blog posts I have written over these years have vanished, they were not present in the homepage and neither they were accessible from the tag, category, author and other archive pages.</p>
<p>At first I thought the problem might be associated with my site’s theme and <a href="http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/" target="_blank">how the loop is made</a>. So I logged into WordPress, only to discover that all my blog posts were deleted. The “Right now” section under WordPress dashboard showed 0 posts although all the comments were intact. Here is a screenshot</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="wordpress-zero-posts" src="http://www.ampercent.com/wp/wp-content/uploads/post/WordPress-Shows-0-Posts-Your-Site-Isnt-H_CF6/wordpress-zero-posts.png" alt="wordpress-zero-posts" width="401" height="310" border="0" /></p>
<p>I felt terrible realizing the situation because the database was working fine and its just that all my posts have been deleted from the database. No Posts and pages were present in the Trash folder as well.</p>
<p>My initial reaction was that someone must have <a href="http://www.ampercent.com/protecti-wp-admin-htaccess/6810/" target="_blank">hacked into my WordPress administration area</a> and he has deleted all the posts and pages. I quickly checked my WordPress user account and found that the username and passwords were not changed at all. Not to forget the fact that I use the very awesome <a href="http://wordpress.org/extend/plugins/login-lockdown/" target="_blank">WordPress Login lockdown plugin,</a> so it was very unlikely that someone secretly logged into my site’s WordPress administration area.</p>
<p>If you ever come across a similar situation on your site, calm down. Your site and My SQL database are just fine and it is possible to restore all the posts within 5 minutes.</p>
<h3>Solve WordPress 0 Posts Error</h3>
<p>There is a high chance that the wp_posts table of your site’s MY SQL database needs a repair. Login to your web hosting account, go to phpmyadmin and select the MySQL database of your website. Next, select the wp_posts table, scroll down and hit “Repair” at the bottom</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="repair-wordpress-table" src="http://www.ampercent.com/wp/wp-content/uploads/post/WordPress-Shows-0-Posts-Your-Site-Isnt-H_CF6/repair-wordpress-table.png" alt="repair-wordpress-table" width="568" height="346" border="0" /></p>
<p>lt should take half a minute until the table is repaired. In my case, all the posts and pages were back just after I repaired the wp_posts table. Phew!</p>
<p>I use an <a href="http://www.ampercent.com/backup-wordpress-blog-database/2053/" target="_blank">automatic database backup plugin</a> which emails me the database backup after every 3 days. So in my case, the last option would have been to restore a previous database backup to my existing WordPress installation. However, I decided to first post my concern at my <a href="http://www.facebook.com/amitgeek/posts/2291767727861" target="_blank" class="broken_link">Facebook profile</a> and see what other bloggers and geeks recommend. Thankfully, I got <a href="http://besterz.com/wordpress-error-0-post/" target="_blank" class="broken_link">this suggestion</a> from <a href="http://www.facebook.com/rajupp" target="_blank">RajuPP</a> and it worked like a charm.</p>
<p>Lessons learned:</p>
<p>1. Do not panic when your site acts weird. Think and act!<br />
2. Post your concern on your social profiles. There is a chance that someone knows how to fix the problem you are having at the moment.<br />
3. Do not always listen to the tech support guys. They generally offer good advice but are sometimes clueless about the cause of a problem.</p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/google-shows-hacked-site-notifications-search-results/7612/' rel='bookmark' title='Google Shows Hacked Site Notification In Search Results'>Google Shows Hacked Site Notification In Search Results</a></li>
<li><a href='http://www.ampercent.com/more-posts-category-pages-wordpress/1116/' rel='bookmark' title='Customize the Number of Posts On Different Pages of your WordPress Blog'>Customize the Number of Posts On Different Pages of your WordPress Blog</a></li>
<li><a href='http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/' rel='bookmark' title='WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag'>WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
<li><a href='http://www.ampercent.com/exclude-category-posts-blog-homepage/1318/' rel='bookmark' title='Exclude Posts of Certain Categories From The Homepage Of A WordPress Blog'>Exclude Posts of Certain Categories From The Homepage Of A WordPress Blog</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/wordpress-0-posts-database-error/9751/">WordPress Dashboard Shows 0 Posts? Your Site Isn&#8217;t Hacked</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/wordpress-0-posts-database-error/9751/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters</title>
		<link>http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/</link>
		<comments>http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 20:16:11 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9676</guid>
		<description><![CDATA[<p>You might know that Google has recently launched an authorship markup tag which attempts to recognize original authors writing a piece of content. By using authorship markup on your blog, you can tell Google that you are the original author who has written this content. This helps cut the clutter from spammers, auto posters and [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/">Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/' rel='bookmark' title='A Guide On Adding Support For Authorship Markup In Your WordPress Blog'>A Guide On Adding Support For Authorship Markup In Your WordPress Blog</a></li>
<li><a href='http://www.ampercent.com/add-marks-comments-webpage/6980/' rel='bookmark' title='Markup.io Lets you Add Custom Comments on Any Webpage'>Markup.io Lets you Add Custom Comments on Any Webpage</a></li>
<li><a href='http://www.ampercent.com/know-indexed-pages-urls-website/7001/' rel='bookmark' title='How to Know the Number of Indexed Pages Of Any Website'>How to Know the Number of Indexed Pages Of Any Website</a></li>
<li><a href='http://www.ampercent.com/how-to-nofollow-the-post-author-link-in-wordpress/4509/' rel='bookmark' title='How to NoFollow The Post Author Link in WordPress'>How to NoFollow The Post Author Link in WordPress</a></li>
<li><a href='http://www.ampercent.com/add-language-translation-website-google-translate-ajax-api/7803/' rel='bookmark' title='Add Language Translation To Your Website Using Google Translate AJAX API'>Add Language Translation To Your Website Using Google Translate AJAX API</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You might know that Google has recently launched an <a href="http://insidesearch.blogspot.com/2011/06/highlighting-content-creators-in-search.html">authorship markup tag</a> which attempts to recognize original authors writing a piece of content. By using authorship markup on your blog, you can tell Google that you are the original author who has written this content. This helps cut the clutter from spammers, auto posters and scrap sites who blindly copy content from your site without any attribution as such.</p>
<p>Google is becoming very serious in their attempt to identify original authors and people who have trust and expertise. If Google thinks that your are a reputed person in your industry, your thumbnail image will be shown in search result pages. An example is shown below:</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto;" title="Adding authorship markup using URL parameters" src="http://www.ampercent.com/wp/wp-content/uploads/authorship-markup-wordpress.png" alt="" /></p>
<p>This is a win-win situation for both users and Google. After seeing the author thumbnail, users will consider your page as trustworthy and they are most likely to click that link and land into your page, looking for the answer they are looking for. Google wins, because their users can quickly find the best content.</p>
<p>Adding authorship markup across all the pages of your site is fairly easy. I have detailed all the steps in my previous tutorial here – <a href="http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/">Adding authorship markup rel=”author” in WordPress</a>. Here is the pictorial representation of how the rel=”author” markup tag should be implemented on your website.</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto;" src="http://www.ampercent.com/wp/wp-content/uploads/authorship-markup-diagram.png" alt="" /></p>
<h3>When you Can’t Edit Your Website’s Template – Add Authorship markup Using URL Parameters</h3>
<p>In order to apply the correct syntax for Authorship markup, you have to modify some parts of  your site’s HTML code and add the desired rel=”author” and rel=”me” tags.</p>
<p>Now, how do you implement authorship markup on a site where you don’t have the permission to edit or modify the HTML template? What if your site is on a free blogging platform e.g Tumblr, Posterous, Google Sites &#8211; where you don’t have enough options to modify the HTML and add the desired author tags?</p>
<p>Luckily, Google has an alternative way to help you out. Here is what you have to do:</p>
<p>1. Open your Google Plus profile and copy your profile URL.</p>
<p>2. When you are publishing a new page on your site, use the following code at the bottom of your page</p>
<p>&lt;a href=&#8221;Your Google Profile URL?rel=author&#8221;&gt;+Your Google Profile Name&lt;/a&gt;</p>
<p><img style="background-image: none; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; padding-top: 0px; border: 0px;" title="adding-author-markup-using-url-parameters" src="http://www.ampercent.com/wp/wp-content/uploads/post/AuthorShip-Markup-Using-URL-Parameters_BCA/adding-author-markup-using-url-parameters.png" alt="adding-author-markup-using-url-parameters" width="406" height="337" border="0" /></p>
<p>3. This is important.</p>
<p>You must use the + before your Google profile name because this syntax tells Google that this anchor text points to the Google profile of the person and it is not linked accidentally or unintentionally.</p>
<p>4. If you don’t have enough permissions to edit the HTML source of your blog post, you can always write your name in plain text and add the rel=”author” URL parameter using the “Link” button on your site’s text editor.</p>
<p>5. One last step. Complete <a href="https://spreadsheets.google.com/a/google.com/spreadsheet/viewform?formkey=dHdCLVRwcTlvOWFKQXhNbEgtbE10QVE6MQ">this form</a> and let Google know that you are using URL parameters for author markup on your site.</p>
<p>The full markup is more bulletproof and recommended for users who can edit the HTML template of their sites. Do not use this alternative method, thinking that both of them are equally feasible. However, if you can’t implement the full markup, this is the only workaround to have authorship markup support on your site using special anchors and URL parameters.</p>
<p>Watch the following video where Matt Cutts and Othar Hansson talk about Authorship markup for sites who can’t edit the HTML source of their template.</p>
<p><a href="http://www.youtube.com/watch?v=gG3Oh7Ues8A">http://www.youtube.com/watch?v=gG3Oh7Ues8A</a></p>
<p><a href="http://www.youtube.com/watch?v=gG3Oh7Ues8A"><img src="http://img.youtube.com/vi/gG3Oh7Ues8A/default.jpg" width="130" height="97" border=0></a></p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/' rel='bookmark' title='A Guide On Adding Support For Authorship Markup In Your WordPress Blog'>A Guide On Adding Support For Authorship Markup In Your WordPress Blog</a></li>
<li><a href='http://www.ampercent.com/add-marks-comments-webpage/6980/' rel='bookmark' title='Markup.io Lets you Add Custom Comments on Any Webpage'>Markup.io Lets you Add Custom Comments on Any Webpage</a></li>
<li><a href='http://www.ampercent.com/know-indexed-pages-urls-website/7001/' rel='bookmark' title='How to Know the Number of Indexed Pages Of Any Website'>How to Know the Number of Indexed Pages Of Any Website</a></li>
<li><a href='http://www.ampercent.com/how-to-nofollow-the-post-author-link-in-wordpress/4509/' rel='bookmark' title='How to NoFollow The Post Author Link in WordPress'>How to NoFollow The Post Author Link in WordPress</a></li>
<li><a href='http://www.ampercent.com/add-language-translation-website-google-translate-ajax-api/7803/' rel='bookmark' title='Add Language Translation To Your Website Using Google Translate AJAX API'>Add Language Translation To Your Website Using Google Translate AJAX API</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/">Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different Types of HTTP Status Codes Explained In Layman&#8217;s Term</title>
		<link>http://www.ampercent.com/check-http-status-codes-webpage-server-headers/9622/</link>
		<comments>http://www.ampercent.com/check-http-status-codes-webpage-server-headers/9622/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 19:20:30 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9622</guid>
		<description><![CDATA[<p>Here is a list of different types of HTTP status codes and the meaning of server headers. Know the meaning and purpose of HTTP status codes and check the http server headers of all internal pages of your site. HTTP status codes can impact search engine optimization of your site in some cases so it is important on the part of any webmaster to know a thing or two about HTTP status codes.</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/check-http-status-codes-webpage-server-headers/9622/">Different Types of HTTP Status Codes Explained In Layman&#8217;s Term</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/' rel='bookmark' title='Remove Unnecessary Codes From The Head Section of Your WordPress Theme'>Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/check-website-server-status-chrome-extension/8898/' rel='bookmark' title='Server Monitor Chrome Extension Checks Uptime Status Of Multiple Sites And Servers Parallely'>Server Monitor Chrome Extension Checks Uptime Status Of Multiple Sites And Servers Parallely</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-9623" title="http-status-codes" src="http://www.ampercent.com/wp/wp-content/uploads/http-status-codes.png" alt="what are http status codes" width="164" height="168" />What is an HTTP status code and why should you care about them, if you have a website or a blog?</p>
<p>Whenever you enter the address of a webpage in your browser&#8217;s address bar, the browser requests data from the server where the page is originally hosted. The web server returns the data but before the browser receives and renders the data at the clients end, an HTTP header is returned by the web server that has the status code of the given page.</p>
<p>In general, HTTP status codes are not meant for human visitors but both desktop and mobile browsers use this information to know more about the present condition of the webpage in question. If the page is in a healthy state, the HTTP status code returned should be a 200 OK. If the page has been moved to a new address, the HTTP status code should be 301 and so on.</p>
<p>There are lots of different HTTP status codes in place and the following table should explain what are the different types of HTTP header responses and their purpose in brief detail:</p>
<table style="border-collapse: collapse;" width="640" border="1">
<tbody>
<tr>
<td align="center" width="74">HTTP Status code</td>
<td align="center" width="86"> Type</td>
<td align="center" width="388">Description</td>
<td align="center" width="78"> Link Juice</td>
</tr>
<tr>
<td colspan="4">
<p align="center"><strong> Redirected</strong></p>
</td>
</tr>
<tr>
<td width="74"> 300</td>
<td width="86">Redirection</td>
<td width="388">The server is waiting for an action from the user so that it can fetch a new resource</td>
<td width="78"> Depends</td>
</tr>
<tr>
<td width="74"><span style="color: #3399ff;"> 301*</span></td>
<td width="86"><span style="color: #3399ff;">Redirected</span></td>
<td width="388"><span style="color: #3399ff;">The old page has permanently moved to a new web address</span></td>
<td width="78"><span style="color: #3399ff;"> Carried</span></td>
</tr>
<tr>
<td width="74"> 302</td>
<td width="86">Redirected</td>
<td width="388">The old page has temporary moved to a new location but the user should continue using the old URL later</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 303</td>
<td width="86">Conditional redirection</td>
<td width="388">The user is requested to do some action (GET request) so that the current page may redirect to another resource. The GET request<br />
is conditional.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 304</td>
<td width="86">Conditional redirection</td>
<td width="388">The user has performed some action (conditional GET request) but the current page was not modified.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 305</td>
<td width="86">Redirected</td>
<td width="388">The user can only access the requested page using a proxy.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 306</td>
<td width="86">Redirected</td>
<td width="388">The server is fetching the page from another location but it will soon fetch the page from its older source. This status code<br />
is rarely used over a 302.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td colspan="4">
<p align="center"><strong> Successful </strong></p>
</td>
</tr>
<tr>
<td width="74"><span style="color: #009933;"> 200 **</span></td>
<td width="86"><span style="color: #009933;">Success</span></td>
<td width="388"><span style="color: #009933;"> The server has processed the webpage correctly.</span></td>
<td width="78"><span style="color: #009933;"> Carried</span></td>
</tr>
<tr>
<td width="74"> 201</td>
<td width="86">Success</td>
<td width="388">The server has processed the requested page and created a new page or resource during the request.</td>
<td width="78"> Depends</td>
</tr>
<tr>
<td width="74"> 202</td>
<td width="86"> Partial success</td>
<td width="388">The server has received the request for the webpage and is currently processing it.</td>
<td width="78"> Carried</td>
</tr>
<tr>
<td width="74"> 203</td>
<td width="86"> Partial success</td>
<td width="388">The server has received the request for the webpage and it is waiting for a resource from another page.</td>
<td width="78"> Carried</td>
</tr>
<tr>
<td width="74"> 204</td>
<td width="86"> Partial success</td>
<td width="388">The server processed the request for the webpage but no content has been returned due to an error.</td>
<td width="78"> Carried</td>
</tr>
<tr>
<td width="74"> 205</td>
<td width="86"> Partial success</td>
<td width="388">Same as 204 but this time the server is waiting for the user to complete a specific action.</td>
<td width="78"> Carried</td>
</tr>
<tr>
<td width="74"> 206</td>
<td width="86"> partial Success</td>
<td width="388">The server received a partial GET request from the user.</td>
<td width="78"> Carried</td>
</tr>
<tr>
<td colspan="4">
<p align="center"><strong>Request Errors</strong></p>
</td>
</tr>
<tr>
<td width="74"> 400</td>
<td width="86"> Fail</td>
<td width="388">Wrong syntax sent by the user</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 401</td>
<td width="86">Authentication required</td>
<td width="388">The page is behind a login and/or requires an authentication from the user.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"><span style="color: #cc0000;"> 403 ***</span></td>
<td width="86"><span style="color: #cc0000;">Forbidden</span></td>
<td width="388"><span style="color: #cc0000;">The server denied the request.</span></td>
<td width="78"><span style="color: #cc0000;"> Not carried</span></td>
</tr>
<tr>
<td width="74"> 404</td>
<td width="86">Page does not exist</td>
<td width="388">The requested page is not found on the server.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 405</td>
<td width="86">Not allowed</td>
<td width="388">The server is not allowing any request to the page for this user.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 406</td>
<td width="86">Not allowed</td>
<td width="388">The server can&#8217;t respond to the request at this time.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 407</td>
<td width="86">Proxy required</td>
<td width="388">The resource must be requested via a proxy.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 408</td>
<td width="86">Timed out</td>
<td width="388">The server timed out performing the request.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 409</td>
<td width="86">Conflict</td>
<td width="388">The user&#8217;s action has given rise to a conflict of resource.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td width="74"> 410<sup> #</sup></td>
<td width="86">Permanently removed</td>
<td width="388">The page has been permanently removed from the server.</td>
<td width="78"> Not carried</td>
</tr>
<tr>
<td colspan="4" width="572">
<p align="center"><strong>Server Errors</strong></p>
</td>
</tr>
<tr>
<td width="74"> 500</td>
<td width="86">Internal Server error</td>
<td width="388">The server is facing issues with some internal configuration and thus unable to fulfill the request at this time</td>
<td width="78">Not carried</td>
</tr>
<tr>
<td width="74"> 501</td>
<td width="86">Not recognized</td>
<td width="388">The server is not equipped to understand the type of request sent</td>
<td width="78">Not carried</td>
</tr>
<tr>
<td width="74"> 502</td>
<td width="86">Bad gateway</td>
<td width="388">While fulfilling the current request, the server received an incorrect response from its upstream server</td>
<td width="78">Not carried</td>
</tr>
<tr>
<td width="74"><span style="color: #cc0000;"> 503</span></td>
<td width="86"><span style="color: #cc0000;">Server not available</span></td>
<td width="388"><span style="color: #cc0000;">The server is facing downtime or is currently unavailable</span></td>
<td width="78"><span style="color: #cc0000;">Not carried</span></td>
</tr>
<tr>
<td width="74"> 504</td>
<td width="86">Gateway timeout</td>
<td width="388">The server is acting as a gateway or a proxy server to<br />
another resource and didnt received a timely request from the user</td>
<td width="78">Not carried</td>
</tr>
<tr>
<td width="74"> 505</td>
<td width="86">Server does not support protocol</td>
<td width="388">The server is not configured to support the HTTP protocol version that is used in the request</td>
<td width="78">Not carried</td>
</tr>
</tbody>
</table>
<p><strong>*</strong> This is the only way to tell search engines that your old page has <a href="http://www.ampercent.com/transfer-wordpress-blog-from-one-host-to-another/4726/">moved to a new location</a> and the newer URL should be<a href="http://www.ampercent.com/how-long-does-it-take-google-to-recrawl-or-reindex-a-page/5993/"> re-crawled</a> and re-indexed. Only this server header preserves link juice and Google Pagerank but remember that if the page is part of a redirect chain, a considerable portion of the PR may be lost overtime.</p>
<p><strong>**</strong> This should be normally the HTTP status code returned by a webpage if it&#8217;s static in nature and needs no GET request from the user.</p>
<p><strong>***</strong> If any of your pages return a 403 HTTP status code, it means that your web server denied the request of the page to Googlebot and human visitors. A possible case is when your web host is <a href="http://www.ampercent.com/check-website-server-status-chrome-extension/8898/">facing downtimes</a> or it is blocking spiders and search bots from accessing some parts of your website, so you should be careful about it.</p>
<p><strong>#</strong> This is similar to a <a href="http://www.ampercent.com/find-broken-links-in-wordpress-blog/689/">404 error</a> but the standard practice is to 301 redirect the missing page to it&#8217;s newer location. If the page has no new location, it is recommended to return a 410. If you have temporarily removed the page from the server, use a 503 instead.</p>
<h3>How To Check the HTTP Status code of a Webpage?</h3>
<p>To check the HTTP status code or the server headers returned by a webpage, go to <a href="http://www.seoconsultants.com/tools/headers">this link</a>, enter the complete web address of the page in the &#8220;check server headers&#8221; text box and hit the &#8220;check&#8221; button.</p>
<p><img class="aligncenter size-full wp-image-9624" title="" src="http://www.ampercent.com/wp/wp-content/uploads/check-server-header.png" alt="Check server headers of a webpage" width="446" height="235" /></p>
<p>The site will process your webpage, check the HTTP server header and show it back to you. If you find that the server header returned is 200 OK, it means that the page in question is opening normally to all users and search engines or web crawlers can successfully parse it at their end.</p>
<p>Another good way to bulk check server headers is to use <a href="http://www.ampercent.com/increase-crawl-rate-faster-indexing-google/9598/">fetch as Googlebot</a> in your your Google webmasters tools account. Go to site diagonostics &gt; fetch as Googlebot and enter the URL of a page within your site to check its HTTP status code.</p>
<p><img class="aligncenter size-full wp-image-9625" title="" src="http://www.ampercent.com/wp/wp-content/uploads/find-server-header-of-webpage.png" alt="Find server headers of a webpage in Google webmaster tools" width="512" height="280" /></p>
<p>Also read: <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes">List of HTTP status codes</a></p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/' rel='bookmark' title='Remove Unnecessary Codes From The Head Section of Your WordPress Theme'>Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/check-website-server-status-chrome-extension/8898/' rel='bookmark' title='Server Monitor Chrome Extension Checks Uptime Status Of Multiple Sites And Servers Parallely'>Server Monitor Chrome Extension Checks Uptime Status Of Multiple Sites And Servers Parallely</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/check-http-status-codes-webpage-server-headers/9622/">Different Types of HTTP Status Codes Explained In Layman&#8217;s Term</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/check-http-status-codes-webpage-server-headers/9622/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</title>
		<link>http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/</link>
		<comments>http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 14:04:48 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9490</guid>
		<description><![CDATA[<p>Title tags and meta description are  two HTML elements which play a huge role in determining the success of a website, as far as search engine optimization is concerned. Search engines display your optimized title tag and a short description snippet on search result pages, so its very important to ensure that every page on [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/">WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/ignore-meta-description-tag/5939/' rel='bookmark' title='When You Should Ignore the Meta Description Tag?'>When You Should Ignore the Meta Description Tag?</a></li>
<li><a href='http://www.ampercent.com/show-meta-description-post-excerpts-homepage/2654/' rel='bookmark' title='How to Show Meta Description as Post Excerpts in Blog’s Home page'>How to Show Meta Description as Post Excerpts in Blog’s Home page</a></li>
<li><a href='http://www.ampercent.com/title-tag-separator-words/8118/' rel='bookmark' title='What Should Be The Ideal Separator In The Title Tag ?'>What Should Be The Ideal Separator In The Title Tag ?</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/optimize-title-tags-wordpress-template/1090/' rel='bookmark' title='Optimizing the Title tags of your WordPress Blog template'>Optimizing the Title tags of your WordPress Blog template</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Title tags and meta description are  two HTML elements which play a huge role in determining the success of a website, as far as search engine optimization is concerned.</p>
<p>Search engines display your <a href="http://www.ampercent.com/optimize-title-tags-wordpress-template/1090/">optimized title tag</a> and a short description snippet on search result pages, so its very important to ensure that every page on your site has a unique title tag and has a small meta description element added to it. While there are situations when you can safey <a href="http://www.ampercent.com/ignore-meta-description-tag/5939/">ignore the Meta description tag</a>, but ignoring the meta information on a large number pages can be a big mistake.</p>
<p>Why? Because when a lot of your website&#8217;s pages have missing meta description and title tags, search engines might not show them on search result pages for similar queries.</p>
<p><strong>For example:</strong> If one page of your site is about &#8220;Blue widgets&#8221; and there is no title tag or a description snippet on the page, search engines might show a portion of text as meta description which not be ideally optimized. Someone searching for &#8220;Blue widgets for an ecommerce site&#8221; might not click your site&#8217;s link from search results, as the description snippet and the title tag do not have the keywords in them.</p>
<h3>Dealing With Missing Meta Description And Title Tags</h3>
<p>So what should you do with internal pages which do not have a meta description or title tag? Should you use a script or a plugin which will automatically generate the description and Title tag for you? I would suggest NO.</p>
<p>If you are using some script to auto generate meta descriptions for all pages, there is a high chance that those description and title tags won&#8217;t be &#8220;humanly optimized&#8221;. Machine generated stuff work out of the box but the disadvantage is that they are not very effective, when you are dealing with human eyes on search result pages.</p>
<p>In most cases, the plugin will use the first few paragraphs as meta description and the &lt;h1&gt; heading of the page as the Title tag. This may work but in general, the title tag and the meta description should be added manually, depending upon the phrases and keywords for which you want the page to rank on search result pages.</p>
<h3>Find All Pages Which Do Not Have a Meta Description or a Title Tag</h3>
<p>Previously, I was using the <a href="http://www.ampercent.com/all-in-one-seo-setting/1087/">All In One SEO pack plugin</a> for filling up meta description and title tags for individual posts. The plugin is very useful but the downside here is that there is no easy way to find pages that do not have a meta description or a title tag.</p>
<p>The solution here is to install the <a href="http://wordpress.org/extend/plugins/missing-seo-data/">missing seo data WordPress plugin</a>. This plugin lets you find out all the pages on your site which do not have a meta description tag or a unique title tag embedded within the page source.</p>
<p><img class="aligncenter size-full wp-image-9493" title="" src="http://www.ampercent.com/wp/wp-content/uploads/find-missing-seo-data.png" alt="find missing seo data for all pages of a website" width="482" height="322" /></p>
<p>Once you have installed the plugin, go to the options page and you will be able to filter all the pages whose meta description and title meta tags are empty. I ran the test on this site and found that there are more than 200 blog posts where I haven&#8217;t filled the SEO details earlier.</p>
<p><strong>Note:</strong> The plugin will automatically detect which plugin is being used to show meta description and title tags on all pages of your site. If you&#8217;re not using any plugin and using a custom field for meta tags, I am not very sure whether the plugin can detect meta tags using the custom field information.</p>
<p>There is no way to filter posts by only a specific meta tag, however the plugin is useful and saves you a good amount of time from manually finding the pages who have missing SEO details.</p>
<p>Related: More <a href="http://www.ampercent.com/tag/wordpress/">WordPress tips and tutorials</a>.</p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/ignore-meta-description-tag/5939/' rel='bookmark' title='When You Should Ignore the Meta Description Tag?'>When You Should Ignore the Meta Description Tag?</a></li>
<li><a href='http://www.ampercent.com/show-meta-description-post-excerpts-homepage/2654/' rel='bookmark' title='How to Show Meta Description as Post Excerpts in Blog’s Home page'>How to Show Meta Description as Post Excerpts in Blog’s Home page</a></li>
<li><a href='http://www.ampercent.com/title-tag-separator-words/8118/' rel='bookmark' title='What Should Be The Ideal Separator In The Title Tag ?'>What Should Be The Ideal Separator In The Title Tag ?</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/optimize-title-tags-wordpress-template/1090/' rel='bookmark' title='Optimizing the Title tags of your WordPress Blog template'>Optimizing the Title tags of your WordPress Blog template</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/">WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Guide On Adding Support For Authorship Markup In Your WordPress Blog</title>
		<link>http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/</link>
		<comments>http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 21:03:36 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9474</guid>
		<description><![CDATA[<p>This tutorial shows you how to add support for rel="author" in Wordpress and let search engines find the real author of a content page on your website.</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/">A Guide On Adding Support For Authorship Markup In Your WordPress Blog</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/' rel='bookmark' title='Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters'>Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters</a></li>
<li><a href='http://www.ampercent.com/subscribe-category-feed-blogger-wordpress/3556/' rel='bookmark' title='How to Subscribe to a Particular Category or Label of a Blog in WordPress and Blogger'>How to Subscribe to a Particular Category or Label of a Blog in WordPress and Blogger</a></li>
<li><a href='http://www.ampercent.com/adsense-split-testing-guide-for-wordpress-blogger-blogs/4991/' rel='bookmark' title='Adsense Split Testing Guide For WordPress and Blogger Blogs'>Adsense Split Testing Guide For WordPress and Blogger Blogs</a></li>
<li><a href='http://www.ampercent.com/how-to-nofollow-the-post-author-link-in-wordpress/4509/' rel='bookmark' title='How to NoFollow The Post Author Link in WordPress'>How to NoFollow The Post Author Link in WordPress</a></li>
<li><a href='http://www.ampercent.com/optimize-title-tags-wordpress-template/1090/' rel='bookmark' title='Optimizing the Title tags of your WordPress Blog template'>Optimizing the Title tags of your WordPress Blog template</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-9479" src="http://www.ampercent.com/wp/wp-content/uploads/author-markup.png" alt="author markup" width="200" height="143" />Following the launch of famous Panda algorithmic update, Google has become very serious with the quality of content that is shown to users when they search for something on Google.com.</p>
<p>Google is constantly tweaking it&#8217;s algorithm and introducing search improvements every week, one of the recent additions being <a href="http://insidesearch.blogspot.com/2011/06/highlighting-content-creators-in-search.html">highlighting content creators in search results.</a> Google is moving way beyond pagerank, on page seo factors and wants to add the &#8220;trust factor&#8221; to their search results; which is why for some queries, you may see author thumbnails on search result pages.</p>
<p>Here are a couple of examples:</p>
<p><img class="aligncenter size-full wp-image-9475" src="http://www.ampercent.com/wp/wp-content/uploads/authorship-markup-wordpress.png" alt="Implementing Authorship markup in WordPress" width="589" height="332" />As you can see, Google shows a small preview of the author who has written the content so you will instantly know whether this page has substantial amount of authority or whether it is written by an expert. Google will show author thumbnails for prolific writers only and not for everyone by default.</p>
<p>When users see the author image attached next to a result, its most likely that they will click them and come to their website to read the content. It can happen that other websites are ranked above but when a user sees a custom highlight, its obvious that the click through rate will increase.</p>
<h3>How Google Finds the Author of an article?</h3>
<p>Here are some questions to ask.</p>
<p>1. How does Google finds who has written a specific piece? Do they have a separate algorithm?<br />
2. Do they read something like &#8220;Written by Author&#8221; on the page or on the domain?<br />
3. Do I have to tell Google that I am the author of this page, whenever I publish a new blog post or upload a new page to my site?<br />
4. Does Google consider <a href="http://www.ampercent.com/the-influence-of-social-media-on-search-rankings/7615/">social signals</a> from Twitter and Facebook to determine the person who has written a specific content in question?</p>
<p>The answer to all the above questions is NO.</p>
<p>In order to make sure that your author thumbnail image is shown on search result pages whenever a page on your site ranks for some keyword, you have to make some changes to your site&#8217;s code. You have to implement support for the rel=&#8221;author&#8221; tag and asynchronously tell Google that you have written this piece.</p>
<p>Here is how you do it.</p>
<h3>Implementing Authorship Markup in WordPress</h3>
<p>Adding support for authorship markup in your site&#8217;s theme is a three fold process.</p>
<p>1. Create an author page on your site and link to your Google profile from this author page<br />
2. Create a Google profile and link this to your author page on your website<br />
3. Add the rel=&#8221;author&#8221; tag on all the pages of your site to ensure that Googlebot scans the rel=&#8221;author&#8221; tag and finds the author of the blog post.</p>
<p>Here is the pictorial representation of how you should add support for authorship markup in a WordPress blog and how you should use the rel=&#8221;author&#8221; tag on different pages of your site:</p>
<p><img class="aligncenter size-full wp-image-9476" src="http://www.ampercent.com/wp/wp-content/uploads/authorship-markup-diagram.png" alt="Using Authorship markup on your site" width="575" height="327" /></p>
<p>Here are the steps that needs to be done (instructions for self hosted WordPress blogs but the core technique holds true for other content management systems as well)</p>
<p><strong>Important:</strong> If your site is on a free blogging platform where you don&#8217;t have enough permissions to modify the source code or HTML template, <a href="http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/">use URL parameters for authorship markup</a>. This is ideally suited for sites on Tumblr, Posterous, Google Sites etc.</p>
<p>1. Create a dedicated author page (<a href="http://www.ampercent.com/amit/">example</a>) on your site for every author who contributes content on your blog. WordPress automatically creates an author page for every author at <em>http://www.domain.com/author/name</em> but this is not very useful and cannot be customized that easily. Instead you should create a new page and ask the author to add information about himself, links to his website, social profiles and so on. The more genuine and trustworthy you make it, the better.</p>
<p>2. <a href="http://profiles.google.com">Create a Google profile</a> and add your site&#8217;s home page as well as the above author page in the links section. Be sure to choose the option &#8220;This page is specifically about me&#8221; and the Google profile&#8217;s search visibility should be &#8220;public&#8221;</p>
<p><img class="aligncenter size-full wp-image-9477" src="http://www.ampercent.com/wp/wp-content/uploads/google-profile-search-visibility.png" alt="Google profile search visibility" width="334" height="271" /></p>
<p>3. Fall back to the author page of your website and add a link to your Google profile. Be sure to add the rel=&#8221;me&#8221; attribute to the Google profile link.</p>
<p>Precisely, the code should be something like this:</p>
<div class="code">&lt;a rel=&#8221;me&#8221; href=&#8221;http://profiles.google.com/ID&#8221;&gt; My Google Profile&lt;/a&gt;</div>
<p><em><strong>Note:</strong> If you have a Google Plus account, the URL http://profiles.google.com will automatically redirect to your Google Plus profile URL.</em></p>
<p>4. Now you have to add the proper code for authorship markup to your single post pages. The HTML output should be something like this</p>
<div class="code">&lt;p&gt;Written by &lt;a href rel=&#8221;author&#8221; href=&#8221;http://www.domain.com/author/&#8221;&gt; Author Name&lt;/a&gt;</div>
<p>If you are the only author of your site, adding the above code should not be a problem. However, if you have multiple authors, you have to pull in the author URL dynamically. Here is how to do it:</p>
<p>5. Open your functions.php file and add the following code:</p>
<div class="code">function rellink($author){<br />
if($author == &#8216;Author1&#8242;)<br />
return &#8216;http://www.domain.com/author1/&#8217;;<br />
elseif ($author == &#8216;Author2&#8242;)<br />
return &#8216;http://www.domain.com/author2/&#8217;;<br />
else return &#8221;;<br />
}</div>
<p>The above code performs a simple check for the name of the author and returns the corresponding author URL. You have to replace the author name set in WordPress profile of the author in question and add the URL&#8217;s respectively.</p>
<p>6. Once you are done with the above function, it&#8217;s time to call it in the single.php file of your theme. Add the following code:</p>
<div class="code">Written by &lt;a target=&#8221;_blank&#8221; rel=&#8221;author&#8221; href=&#8221;&lt;?php echo rellink(get_the_author());?&gt;&#8221;&gt;&lt;?php the_author();?&gt;&lt;/a&gt;</div>
<p>7. Done!</p>
<p>Congratulations! You have successfully added rel=&#8221;author&#8221; tag in your WordPress theme and now your site supports the authorship markup that Google and other search engine supports.</p>
<h3>Check Your Pages For Correct Authorship markup</h3>
<p>The last step involves checking whether your site&#8217;s single post pages can be correctly parsed by Googlebot. To do this, <a href="http://www.google.com/webmasters/tools/richsnippets">use the rich snippets testing tool</a> to check your structured data markup and whether Google can display it on search result pages.</p>
<p><img class="aligncenter size-full wp-image-9478" src="http://www.ampercent.com/wp/wp-content/uploads/verify-authorship.png" alt="Verify Authorship markup of your pages" width="526" height="335" /></p>
<p>Simply enter a content page of your site which has a link to your author page and hit the &#8220;Preview&#8221; button. If you have done everything correctly, you should see the verified option under extracted rich snippet data.</p>
<h3>Advantages of Supporting AuthorShip Markup On Your Blog</h3>
<p>While there is no guarantee that adding support for authorship markup will show author thumbnails on search result pages, this is a good way to tell search engines that you have written the content and that you are a trusted person on the subject. When Googlebot scans your site and your Google profile, it will be able to judge your authority and genuineness.</p>
<p>This will help you set yourself apart from spammers and scraped sites who can sometime, <a href="http://www.ampercent.com/online-plagiarism-content-theft/6809/">beat you in organic rankings</a>. Lastly, it never hurts to create a Google friendly site, right?</p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/adding-authorship-markup-using-url-parameters/9676/' rel='bookmark' title='Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters'>Adding Authorship Markup On Your Website Using Special Anchors And URL Parameters</a></li>
<li><a href='http://www.ampercent.com/subscribe-category-feed-blogger-wordpress/3556/' rel='bookmark' title='How to Subscribe to a Particular Category or Label of a Blog in WordPress and Blogger'>How to Subscribe to a Particular Category or Label of a Blog in WordPress and Blogger</a></li>
<li><a href='http://www.ampercent.com/adsense-split-testing-guide-for-wordpress-blogger-blogs/4991/' rel='bookmark' title='Adsense Split Testing Guide For WordPress and Blogger Blogs'>Adsense Split Testing Guide For WordPress and Blogger Blogs</a></li>
<li><a href='http://www.ampercent.com/how-to-nofollow-the-post-author-link-in-wordpress/4509/' rel='bookmark' title='How to NoFollow The Post Author Link in WordPress'>How to NoFollow The Post Author Link in WordPress</a></li>
<li><a href='http://www.ampercent.com/optimize-title-tags-wordpress-template/1090/' rel='bookmark' title='Optimizing the Title tags of your WordPress Blog template'>Optimizing the Title tags of your WordPress Blog template</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/">A Guide On Adding Support For Authorship Markup In Your WordPress Blog</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/adding-author-markup-wordpress-rel-author/9474/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</title>
		<link>http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/</link>
		<comments>http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 23:58:30 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9418</guid>
		<description><![CDATA[<p>WordPress as a content management system offers many possibilities on how you want your site’s structure to be built and how you want content to be shown on different pages of your site. The best thing regarding WordPress is that you need to edit a file only once and the changes will get reflected across [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/">Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/' rel='bookmark' title='WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag'>WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></li>
<li><a href='http://www.ampercent.com/prevent-indexing-wordpress-image-attachment-pages/9082/' rel='bookmark' title='WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO'>WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO</a></li>
<li><a href='http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/' rel='bookmark' title='Remove Unnecessary Codes From The Head Section of Your WordPress Theme'>Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>WordPress as a content management system offers many possibilities on how you want your site’s structure to be built and how you want content to be shown on different pages of your site. The best thing regarding WordPress is that you need to edit a file only once and the changes will get reflected across all pages of your website.</p>
<p>But this universal nature of WordPress has some disadvantages.</p>
<p>Let’s say you run a blog where you want to show custom HTML codes for only specific posts anywhere on the template. The custom HTML codes won’t be included in the HTML source of your blog post. You want to include a widget or a new section on your blog’s sidebar or footer only for specific posts or pages of your site and this section won’t appear on the pages where you don’t want them to appear.</p>
<p>The following diagram should make the point more clear:</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px initial initial;" title="Showing HTML codes on specific posts in WordPress" src="http://www.ampercent.com/wp/wp-content/uploads/post/How-to-Use-Wordpress-Custom-Fields-to-Sh_42F5/custom-html-specific-posts_thumb.png" border="0" alt="Showing HTML codes on specific posts in WordPress" width="486" height="323" /></p>
<p>We have previously discussed how to <a href="http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/">show custom HTML codes in the middle of a WordPress loop</a>. But note that in this case, the codes will appear outside the loop which means, you have to <strong>use custom fields outside the loop</strong> and render the code on pages you want them to appear.</p>
<h3>Using Custom Fields for Showing HTML Codes Only On Specific Pages In WordPress</h3>
<p>Here are the steps that needs to be followed:</p>
<p>1. Open the <em>functions.php</em> file of your theme for editing. If your theme doesn’t have a functions.php file, create one.</p>
<p>2. Drop the following code</p>
<div class="code">
function mycustomhtml($key, $echo = FALSE) {<br />
global $post;<br />
$mycustomhtml = get_post_meta($post-&gt;ID, $key, true);<br />
if($echo == FALSE) return $mycustomhtml;<br />
echo $mycustomhtml;<br />
}
</div>
<p>3. Open the sidebar.php file of your WordPress theme and add the following code:</p>
<div class="code">
&lt;?php if(mycustomhtml(&#8216;mycustomfield&#8217;) ) { ?&gt;<br />
&lt;?php echo mycustomhtml(&#8216;mycustomfield&#8217;); ?&gt;<br />
&lt;?php } ?&gt;
</div>
<p><em>Note: You can change the “mycustomfield” value to any suitable name of your choice.</em></p>
<p>The above code should be added to the file where you want your customized HTML section to appear. It can be added to the <em>sidebar.php</em> file or to the footer or header of your site but remember to call this function only once.</p>
<p>4. Now go to your WordPress administration area and open the specific post for editing. Scroll down to the custom fields section and add a new custom field and it’s corresponding HTML code</p>
<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px initial initial;" title="Adding custom fields in WordPress" src="http://www.ampercent.com/wp/wp-content/uploads/post/How-to-Use-Wordpress-Custom-Fields-to-Sh_42F5/adding-custom-fields-wordpress_thumb.png" border="0" alt="Adding custom fields in WordPress" width="550" height="270" /></p>
<p><strong>Important note: </strong>You should add the custom field that is being called from the corresponding portion of your site’s theme. Note that in step 3, we are calling the custom field named “mycustomfield” so if the name of your custom field is “newsletter”, you should add the “newsletter” custom field in the specific post where you want the HTML section to appear.</p>
<p>5. Save the post and you are done. Now open the specific post in a new browser tab and you should see the new section or widget appear only in that specific post and not across all the pages of your site.</p>
<h3>Implementation Example</h3>
<p>I was experimenting with this code for showing related posts manually on specific posts. I have added this custom field hack on <a href="http://www.ampercent.com/bulk-unfollow-inactive-twitter-followers/5339/">this post</a>, so you can check how this actually works</p>
<p><img style="background-image: none; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; padding-left: 0px; padding-right: 0px; display: block; padding-top: 0px; border: 0px initial initial;" title="custom-field-example" src="http://www.ampercent.com/wp/wp-content/uploads/post/How-to-Use-Wordpress-Custom-Fields-to-Sh_42F5/custom-field-example.png" border="0" alt="custom-field-example" width="450" height="283" /></p>
<p>You can use this method to <a href="http://www.ampercent.com/how-to-show-adsense-ads-only-on-longer-posts-in-wordpress/5048/">show advertisements only on specific posts</a> or on <a href="http://www.ampercent.com/show-adsense-ads-older-posts-wordpress/6879/">older pages</a> of your site. Another good idea would be to find the high bounce pages of your site using Google Analytics and add more related and meaningful content so that your site visitors can dig deeper into your site and flip more pages.</p>
<p>Also remember to <a href="http://www.ampercent.com/adsense-split-testing-guide-for-wordpress-blogger-blogs/4991/">split test</a> with your experiments and find which position brings the most conversions. Good luck !</p>
<p>Read our archive of <a href="http://www.ampercent.com/tag/wordpress">WordPress tricks and hacks</a></p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/find-missing-seo-data-meta-description-title-tags/9490/' rel='bookmark' title='WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag'>WordPress Tip &#8211; Find All Pages of Your Site Which Don&#8217;t Have a Meta Description or Title Tag</a></li>
<li><a href='http://www.ampercent.com/prevent-indexing-wordpress-image-attachment-pages/9082/' rel='bookmark' title='WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO'>WordPress Image Attachment Pages Can Sometimes Hurt Your Site&#8217;s SEO</a></li>
<li><a href='http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/' rel='bookmark' title='Remove Unnecessary Codes From The Head Section of Your WordPress Theme'>Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/">Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Unnecessary Codes From The Head Section of Your WordPress Theme</title>
		<link>http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/</link>
		<comments>http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/#comments</comments>
		<pubDate>Mon, 23 May 2011 18:27:26 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=9294</guid>
		<description><![CDATA[<p>The following tips are applicable for both self hosted WordPress blogs and blogs that are hosted on WordPress.com’s free blogging platform. If you have a blog or a website powered by WordPress content management system, you might have noticed some lines of code before the &#60;/ head&#62; section of your website’s WordPress theme. While some [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/">Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
<li><a href='http://www.ampercent.com/mobile-optimized-theme-wordpress/8929/' rel='bookmark' title='How To Install a Mobile Theme On Your WordPress Blog, And Why You Should'>How To Install a Mobile Theme On Your WordPress Blog, And Why You Should</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><em>The following tips are applicable for both self hosted WordPress blogs and blogs that are hosted on WordPress.com’s free blogging platform.</em></p>
<p>If you have a blog or a website powered by WordPress content management system, you might have noticed some lines of code before the &lt;/ head&gt; section of your website’s WordPress theme. While some of the codes are useful and have a purpose, a few of them are not.</p>
<p>This tutorial shows you how to remove unnecessary codes from the head section of a WordPress theme.</p>
<p><img class="size-full wp-image-9295 alignright" title="Remove unnecessary codes from WordPress header" src="http://www.ampercent.com/wp/wp-content/uploads/remove-unnecesary-header-codes.png" alt="Remove unnecessary codes from WordPress header" width="264" height="321" />Let’s take a look at some example codes ne by one</p>
<div class="code">1. &lt;link rel=&#8221;EditURI&#8221; type=&#8221;application/rsd+xml&#8221; title=&#8221;RSD&#8221; href=http://example.com/xmlrpc.php?rsd /&gt;</div>
<p>WordPress supports an XML-RPC interface which is used by blogging clients like Windows Live writer, Ecto etc for publishing blog posts to your website directly from desktop. If you always use a browser to <a href="http://www.ampercent.com/write-blog-posts-publish-html-pages-without-signups/9154/">write blog posts</a> within your WordPress administration area, the above line of code is not useful.</p>
<div class="code">2. &lt;link rel=&#8221;wlwmanifest&#8221; type=&#8221;application/wlwmanifest+xml&#8221; href=http://example.com/wp-includes/wlwmanifest.xml /&gt;</div>
<p>The wlwmanifest.xml file is used by Windows Live writer to fetch Tags and Categories of your WordPress blog on the desktop blogging client. Again, if you are not using <a href="http://www.ampercent.com/useful-windows-live-writer-plugins/2695/">Windows Live writer</a> to write blog articles, this code is meaningless.</p>
<div class="code">3. &lt;link rel=&#8217;index&#8217; title=&#8221; href=&#8217;http://example.com/&#8217; /&gt;</div>
<p>The recent version of WordPress 3.0 automatically inserts a link rel tag on the head section of your WordPress theme which points to your homepage. This is not to be confused as an SEO improvement.</p>
<p>Instead, some WordPress themes might use this tag for varied reasons. If your theme does not refers to this tag or makes a call, you should better remove the index page referrer from the head section of your WordPress theme.</p>
<div class="code">4. &lt;link rel=&#8217;start&#8217; title=&#8221; href=&#8217;http://example.com/first-post/&#8217; /&gt;</div>
<p>This is another annoying piece of code which points to the first post published on your current WordPress installation. The annoying part is that WordPress automatically embeds this code on the head section of every page on your site. Again, this code does not help in SEO or <a href="http://www.ampercent.com/how-long-does-it-take-google-to-recrawl-or-reindex-a-page/5993/">better crawling</a> of your pages.</p>
<div class="code">
<p>5. &lt;link rel=&#8217;prev&#8217; title=&#8221; href=&#8217;http://example.com/previous-post/&#8217; /&gt;</p>
<p>&lt;link rel=&#8217;next&#8217; title=&#8221; href=&#8217;http://example.com/next-post/&#8217; /&gt;</p>
</div>
<p>Above pair of codes are another rel link which points to the previous and next blog entry. Serves no real purpose.</p>
<div class="code">6. &lt;meta name=&#8221;generator&#8221; content=&#8221;WordPress 3.1.2&#8243; /&gt;</div>
<p>This one is added from the WordPress header hook and shows the  WordPress version installed on your site. It can be a <a href="http://www.ampercent.com/completely-secure-wordpress-blog/1426/">security concern</a>, so you should remove it as well.</p>
<div class="code">7. &lt;link rel=&#8217;shortlink&#8217; href=&#8217;http://wp.me/abcde&#8217; /&gt;</div>
<p>This is the <a href="http://www.ampercent.com/get-bit-ly-shortlinks-for-wordpress-posts-pages/7751/">shortlink version</a> of a published post on your blog, which is embedded from the WordPress header hook. Some themes are coded to use it, so before dropping this one, please double check and verify that you are not using this value anywhere on your theme.</p>
<p>Removing these unnecessary codes from the head section of your WordPress theme is fairly easy. Open your theme’s functons.php file and paste the following codes (be careful, take backups first).</p>
<div class="code">remove_action( &#8216;wp_head&#8217;, &#8216;wp_shortlink_wp_head&#8217;, 10, 0 );<br />
remove_action(&#8216;wp_head&#8217;, &#8216;rsd_link&#8217;);<br />
remove_action(&#8216;wp_head&#8217;, &#8216;wlwmanifest_link&#8217;);add_filter( &#8216;index_rel_link&#8217;, &#8216;remove_code&#8217; );<br />
add_filter( &#8216;parent_post_rel_link&#8217;, &#8216;remove_code&#8217; );<br />
add_filter( &#8216;start_post_rel_link&#8217;, &#8216;remove_code&#8217; );<br />
add_filter( &#8216;previous_post_rel_link&#8217;, &#8216;remove_code&#8217; );<br />
add_filter( &#8216;next_post_rel_link&#8217;, &#8216;remove_code&#8217; );<br />
add_filter(&#8216;post_comments_feed_link&#8217;,'remove_code&#8217;);&nbsp;</p>
<p>function remove_code( $data ) {<br />
return false;<br />
}</p>
</div>
<p>While keeping the above codes in the head section of your theme <strong>won&#8217;t harm your site</strong> in any sense, but it&#8217;s always better to reduce overhead of HTML markup and serve only what is required. Why increase the overall size of all the pages of your site with useless machine generated stuff which serves no purpose at all?</p>
<p><strong>Important note:</strong> It&#8217;s important to note that all of the above codes can be removed by editing core WordPress files (e.g wp-includes/wlmanifest.xml). But I would suggest you to use theme specific codes for two reasons. First, when you upgrade WordPress to it&#8217;s latest version, all your customized hooks will be overwritten with their default code which will bring the earlier codes back.</p>
<p>Second, isn&#8217;t it always easy to enable or disable stuff from a theme or a plugin when compared to editing <a href="http://www.ampercent.com/move-core-wordpress-files-custom-directory/6211/">core WordPress files</a>, which can break existing features?</p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/embed-html-php-codes-middle-of-wordpress-loop/8785/' rel='bookmark' title='How To Embed Custom Codes In The Middle Of A WordPress Loop'>How To Embed Custom Codes In The Middle Of A WordPress Loop</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/how-to-show-category-and-tag-descriptions-in-wordpress-theme/4813/' rel='bookmark' title='How to Show Category and Tag Descriptions In WordPress Theme'>How to Show Category and Tag Descriptions In WordPress Theme</a></li>
<li><a href='http://www.ampercent.com/using-wordpress-custom-fields-outside-loop-showing-custom-html/9418/' rel='bookmark' title='Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site'>Using WordPress Custom Fields to Show HTML Codes On Specific Pages Of Your Site</a></li>
<li><a href='http://www.ampercent.com/mobile-optimized-theme-wordpress/8929/' rel='bookmark' title='How To Install a Mobile Theme On Your WordPress Blog, And Why You Should'>How To Install a Mobile Theme On Your WordPress Blog, And Why You Should</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/">Remove Unnecessary Codes From The Head Section of Your WordPress Theme</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/remove-unnecessary-codes-from-the-head-section-of-your-wordpress-theme/9294/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems Adding YouTube Video in WordPress Posts ?</title>
		<link>http://www.ampercent.com/add-youtube-videos-wordpress-posts/5833/</link>
		<comments>http://www.ampercent.com/add-youtube-videos-wordpress-posts/5833/#comments</comments>
		<pubDate>Fri, 13 May 2011 09:23:01 +0000</pubDate>
		<dc:creator>Amit Banerjee</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Youtube]]></category>

		<guid isPermaLink="false">http://www.ampercent.com/?p=5833</guid>
		<description><![CDATA[<p>The visual post editor of WordPress is not very good in handling embed codes of web videos that are hosted on video sharing websites like YouTube, DailyMotion, Blip.tv, Vimeo or MySpace. While every video site provides it&#8217;s own embed code for videos, which needs to be pasted in the HTML source of a blog post [...]</p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/add-youtube-videos-wordpress-posts/5833/">Problems Adding YouTube Video in WordPress Posts ?</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>
Related posts:<ol>
<li><a href='http://www.ampercent.com/youtube-now-lets-you-remove-its-logo-from-youtube-video-player/9363/' rel='bookmark' title='YouTube Now Lets You Remove It&#8217;s Logo From YouTube Video Player'>YouTube Now Lets You Remove It&#8217;s Logo From YouTube Video Player</a></li>
<li><a href='http://www.ampercent.com/embed-audio-youtube-video/7144/' rel='bookmark' title='How to Embed Only the Audio Of a YouTube Video'>How to Embed Only the Audio Of a YouTube Video</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/embed-facebook-videos-photos-albums-website-blog-posts/7488/' rel='bookmark' title='How to Embed Facebook Videos And Photo Albums In WordPress'>How to Embed Facebook Videos And Photo Albums In WordPress</a></li>
<li><a href='http://www.ampercent.com/3-ways-to-crop-an-embedded-youtube-video-to-show-a-selected-part/7718/' rel='bookmark' title='3 Ways To Crop An Embedded Youtube Video To Show A Selected Part'>3 Ways To Crop An Embedded Youtube Video To Show A Selected Part</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The visual post editor of WordPress is not very good in handling embed codes of web videos that are hosted on video sharing websites like YouTube, DailyMotion, Blip.tv, Vimeo or MySpace. While every video site provides it&#8217;s own embed code for videos, which needs to be pasted in the HTML source of a blog post &#8211; they sometime don&#8217;t work at all.</p>
<p><strong>Example:</strong> Sometimes, you may find that you correctly pasted the embed code of a video in the HTML source of a blog post in WordPress but on switching the post editor to normal mode, the video does not shows up. You revert back to the HTML view of the post and find that the video embed code has simply vanished.</p>
<p>This might be a bug in WordPress post editor and I haven&#8217;t found any solution to fix this problem. Sometimes, the video embed codes work, sometime they don&#8217;t.</p>
<h3>The General Way to Add YouTube Videos Within A Blog Post In WordPress</h3>
<p>Let&#8217;s first see what is the general way to add the embed code of a YouTube video in the HTML source of a blog post, written in self hosted WordPress CMS.</p>
<p>1. Go to the YouTube video page and click the &#8220;Share&#8221; button. This will show more options e.g short link, sharing links on Twitter, Facebook, HD URL and the embed code of the video, as shown below:</p>
<p><img class="aligncenter size-full wp-image-9234" title="How to Add YouTube Videos in WordPress Posts" src="http://www.ampercent.com/wp/wp-content/uploads/youtube-video-embed-code.png" alt="How to Add YouTube Videos in WordPress Posts" width="516" height="338" /></p>
<p>2. You can either grab the Iframe code of the old embed code for YouTube video. I have observed that the Iframe code may fall apart in certain situations while the old code works fine, irrespective of the WordPress Post editor problem as discussed above.</p>
<p>3. Copy the video source code from the YouTube page, open your blog post from WordPress administration area and switch to the HTML view by clicking &#8220;HTML&#8221; at the right corner of the post editor</p>
<p><img class="aligncenter size-full wp-image-9235" title="Add Video Embed code in WordPress blog post" src="http://www.ampercent.com/wp/wp-content/uploads/add-video-embed-code.png" alt="Add Video Embed code in WordPress blog post" width="550" height="314" />4. Now paste the embed code where you want the video to appear.</p>
<p>You are done with the adding part, now save the draft and hit the &#8220;Preview&#8221; link to preview the page you just created. If the video does not appear in the preview mode &#8211; rest assured WordPress post editor has erased the video embed code and you have to find another simpler method which should work without any problems.</p>
<h3>Using the oEmbed Method</h3>
<p>This is a really quick way to add web videos to your blog posts but many bloggers are not aware of the Oembed feature.</p>
<p><strong>What is oEmbed ?</strong></p>
<p>oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.<strong><br />
</strong></p>
<p>To embed a YouTube, Vimeo or Dailymotion video using the oEmbed method, followthe simple steps mentioned below:</p>
<p>1. Copy the complete URL of the webpage which contains the video (remember to copy including http://)</p>
<p>2. Open your blog post and paste the same URL in the Visual mode and not in the HTML source, as shown in the following screenshot:</p>
<div id="attachment_5835" class="wp-caption aligncenter" style="width: 580px"><img class="size-full wp-image-5835" src="http://www.ampercent.com/wp/wp-content/uploads/post/add-youtube-video-wordpress-posts1.gif" alt="Embed YouTube videos in WordPress posts" width="570" height="256" /><p class="wp-caption-text">Adding YouTube Videos in WordPress Posts</p></div>
<p>3. Remember that the URL should not be linked and should appear as plain text. In short, after pasting the video URL in the post editor, select the complete URL and hit the &#8220;Unlink&#8221; button once . This will preserve the plain text version of the video URL, without actually linking to it.</p>
<p>4. To align the video towards left, right or in center &#8211; you can follow the same convention as that for aligning text.</p>
<p>When you publish the blog post containing the plain text version of the video URL, WordPress or your blogging platform (Tumblr, Posterous for example) will automatically fetch the embed source of the video and dynamically add it to the HTML source of the page.</p>
<p>You might want to read our other related guides on WordPress:</p>
<ul>
<li><a href="http://www.ampercent.com/embed-facebook-videos-photos-albums-website-blog-posts/7488/">How to embed Facebook videos and Photo albums in WordPress</a></li>
<li><a title="How to Embed Only the Audio Of a YouTube Video" href="http://www.ampercent.com/embed-audio-youtube-video/7144/">How to embed only the audio of a YouTube video</a></li>
<li><a title="EmbedPlus: Embed YouTube Videos With DVD Style Playback Controls" href="http://www.ampercent.com/embedplus-embed-youtube-videos-with-better-playback-controls/8584/">Embed YouTube videos with DVD style playback controls</a></li>
<li><a title="3 Ways To Crop An Embedded Youtube Video To Show A Selected Part" href="http://www.ampercent.com/3-ways-to-crop-an-embedded-youtube-video-to-show-a-selected-part/7718/">Crop a YouTube video to show only the selected part</a></li>
</ul>
<h3>A WordPress Plugin To Customize How YouTube Videos Appear In Your Blog Posts And Pages</h3>
<p>If you are looking for more customizations and want to edit the width and height of the YouTube video, without having to touch the embed code &#8211; install the <a href="http://wordpress.org/extend/plugins/smart-youtube/">Smart YouTube WordPress plugin</a>. The plugin allows you to add YouTube videos in WordPress posts, coments, RSS feeds and pages.Additionally, the plugin allows you to define a custom width and height of the video (maintaining a correct aspect ratio) so your video always appears in the correct size and format.</p>
<p>Here is how the settings panel of the plugin looks like:</p>
<p><img class="aligncenter size-full wp-image-9236" title="SmartYouTube WordPress plugin" src="http://www.ampercent.com/wp/wp-content/uploads/smart-youtube-wordpress-plugin.png" alt="SmartYouTube WordPress plugin" width="560" height="597" />The plugin actually works with a shortcode format for embedding YouTube videos, which is really easy to remember. Give this a try !</p>
<p>Related posts:<ol>
<li><a href='http://www.ampercent.com/youtube-now-lets-you-remove-its-logo-from-youtube-video-player/9363/' rel='bookmark' title='YouTube Now Lets You Remove It&#8217;s Logo From YouTube Video Player'>YouTube Now Lets You Remove It&#8217;s Logo From YouTube Video Player</a></li>
<li><a href='http://www.ampercent.com/embed-audio-youtube-video/7144/' rel='bookmark' title='How to Embed Only the Audio Of a YouTube Video'>How to Embed Only the Audio Of a YouTube Video</a></li>
<li><a href='http://www.ampercent.com/add-qr-codes-wordpress-blog-posts/8608/' rel='bookmark' title='Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]'>Add QR Codes To Your Blog Posts For Easy Distribution Of Content [WordPress]</a></li>
<li><a href='http://www.ampercent.com/embed-facebook-videos-photos-albums-website-blog-posts/7488/' rel='bookmark' title='How to Embed Facebook Videos And Photo Albums In WordPress'>How to Embed Facebook Videos And Photo Albums In WordPress</a></li>
<li><a href='http://www.ampercent.com/3-ways-to-crop-an-embedded-youtube-video-to-show-a-selected-part/7718/' rel='bookmark' title='3 Ways To Crop An Embedded Youtube Video To Show A Selected Part'>3 Ways To Crop An Embedded Youtube Video To Show A Selected Part</a></li>
</ol></p><p><p style="background-color:#FFFFE0;
border:1px solid #FFFFE0;padding:5px;"><b><a href="http://www.ampercent.com/add-youtube-videos-wordpress-posts/5833/">Problems Adding YouTube Video in WordPress Posts ?</a></b> originally published on <b><a href="http://www.ampercent.com">Ampercent</a></b>
</p></p>]]></content:encoded>
			<wfw:commentRss>http://www.ampercent.com/add-youtube-videos-wordpress-posts/5833/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

