<?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>SEO, Internet Marketing and Website Design for Hickory NC &#187; Local Markets</title>
	<atom:link href="http://www.birdseyeseo.com/category/local-markets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.birdseyeseo.com</link>
	<description></description>
	<lastBuildDate>Fri, 20 Aug 2010 16:26:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Useful WordPress SQL Hacks</title>
		<link>http://www.birdseyeseo.com/2010/08/useful-wordpress-sql-hacks/</link>
		<comments>http://www.birdseyeseo.com/2010/08/useful-wordpress-sql-hacks/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 16:25:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Local Markets]]></category>
		<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.birdseyeseo.com/?p=116</guid>
		<description><![CDATA[I often find myself in my daily work coming up to some issue&#8217;s that I need to find some answer&#8217;s for.  While looking yesterday I came across a great article that helped me out a lot.  It helped me complete some SQL issues I was having while moving some WordPress databases to a new server.  [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I often find myself in my daily work coming up to some issue&#8217;s that I need to find some answer&#8217;s for.  While looking yesterday I came across a great article that helped me out a lot.  It helped me complete some SQL issues I was having while moving some WordPress databases to a new server.  This helped me and I hope you will find it useful as well.</p>
<h3>1. Creating a Backup of Your Database</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm5.png" alt="Sm5 in 8 Useful WordPress SQL Hacks" width="500" height="244" /></p>
<p><strong>The problem</strong>.  While the tips in the rest of this post have been tested, you should  definitely not try any of them without first having a proper backup of  your MySQL database.</p>
<p><strong>The solution</strong>. To create a manual backup of your WordPress database, follow these simple steps:</p>
<ol>
<li>Log in to phpMyAdmin and select your WordPress database.</li>
<li>Once done, click the “Export” button located in the horizontal menu.</li>
<li>Choose a compression method (personally, I use gzip), and click the “Execute” button.</li>
<li>Your browser will ask you if you want to download the backup. Of course, select “Yes,” and then store it on your hard drive.</li>
</ol>
<p><strong>Explanation</strong>. Note that creating a backup of your WordPress database can be more easily executed with the <a href="http://wordpress.org/extend/plugins/wp-db-backup/">WP-DB-Backup</a> plug-in. WordPress users should install this plug-in if they have not yet done so and create regular backups of their data.</p>
<h3>2.  Batch Delete Post Revisions</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm1.png" alt="Sm1 in 8 Useful WordPress SQL Hacks" width="500" height="234" /></p>
<p><strong>The problem</strong>.  Post revisions, a new WordPress 2.6 feature, can be very useful, but  they also increase the size of your MySQL database. Sure, you can  manually delete posts revisions, but that’s very long and boring work.</p>
<p><strong>The solution</strong>.  The solution to this problem is simple: we batch delete post revisions  by using a simple SQL query. The result can be almost unbelievable if  you have a lot of posts: Your database size will be reduced by half!</p>
<ol>
<li>Log in to phpMyAdmin and select your WordPress database.</li>
<li>Click the “SQL” button. Paste the following code in the SQL command window:
<div id="highlighter_617698">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>DELETE</code> <code>FROM</code> <code>wp_posts </code><code>WHERE</code> <code>post_type = </code><code>"revision"</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>You’re done. Depending on how many posts you had in your WordPress database, you may have saved lots of precious space!</li>
</ol>
<p><strong>Code explanation</strong>.  The wp_posts table has a field named post_type. This field can have one  of many values, such as “post,” “page” or “revision.” When we want to  get rid of post revisions, we simply run a command to delete any entry  in the wp_posts table in which the post_type field is equal to  “revision.”</p>
<h3>3. Erase 5000 Spam Comments in a Second</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm3.png" alt="Sm3 in 8 Useful WordPress SQL Hacks" width="500" height="241" /></p>
<p><strong>The problem</strong>.  True story: a friend of mine recently created his own blog and started  to promote it everywhere on the Internet. After some weeks of intensive  work, he spent some days on vacation without Internet access.</p>
<p>When  he came back home, he looked at his blog and saw… 5000+ comments  awaiting moderation! Of course, most of them were spam, but he was  actually about to check them all to make sure he did not delete a valid  comment made by one of his regular readers.</p>
<p><strong>The solution</strong>.  Happily, my friend told me about his spam problem. He had already spent  45 minute manually deleting spam when I showed him this useful SQL tip.</p>
<ol>
<li>Log in to phpMyAdmin and select your WordPress database.</li>
<li>Click the “SQL” button. Paste the following code in the SQL command window:
<div id="highlighter_464190">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>DELETE</code> <code>from wp_comments WHERE comment_approved = </code><code>'0'</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>Goodbye bad comments! Enjoy your spam-free database!</li>
</ol>
<p><strong>Explanation</strong>.  The wp_comments table contains a field named comment_approved, which is  a boolean value (1 or 0). Approved comments have a value of 1, and  comments awaiting moderation have a value of 0. By running the above  command, we simply delete any comments that haven’t been approved yet.</p>
<p><strong>Be careful</strong>. While this solution can be pretty useful if you have millions of spam comments to delete, <strong>it will also erase valid unapproved comments</strong>. If you don’t already use Akismet, install it now to prevent spamming.</p>
<h3>4. Change the Post Attribution</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm4.png" alt="Sm4 in 8 Useful WordPress SQL Hacks" width="500" height="251" /></p>
<p><strong>The problem</strong>.  When you installed WordPress, an “admin” account was created. Some  bloggers make the mistake of using that account to write their posts,   until they realize that it’s not personal at all.</p>
<p><strong>The solution</strong>. Modifying author attribution on each post takes a lot of time. Happily, SQL can help you get things done:</p>
<ol>
<li>Log in to your phpMyAdmin and select your WordPress database.</li>
<li>First, we have to get the right user IDs. To do so, open the SQL command window and execute the following command:
<div id="highlighter_568788">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>SELECT</code> <code>ID, display_name </code><code>FROM</code> <code>wp_users;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>phpMyAdmin  will display a list of user IDs associated with WordPress users. Let’s  say that NEW_AUTHOR_ID is the ID of the more recently created author,  and OLD_AUTHOR_ID is the original admin account ID.</li>
<li>After you swap the NEW_AUTHOR_ID and OLD_AUTHOR_ID IDs, run the following command:
<div id="highlighter_992343">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>UPDATE</code> <code>wp_posts </code><code>SET</code> <code>post_author=NEW_AUTHOR_ID </code><code>WHERE</code> <code>post_author=OLD_AUTHOR_ID;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>That’s all. All posts previously attributed to admin are now attributed to whichever valid user you have selected.</li>
</ol>
<h3>5. Manually Reset Your Password</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm6.png" alt="Sm6 in 8 Useful WordPress SQL Hacks" width="500" height="235" /></p>
<p><strong>The problem</strong>.  In order to protect their blogs, people often pick strong passwords,  such as u7*KoF5i8_. Of course, this is a good thing, but I have heard  many stories of forgotten admin passwords.</p>
<p><strong>The solution</strong>.  When you lose your password, WordPress can email you a link to reset  it. But  if you don’t have access to the email address recorded in the  WordPress database anymore, or if you prefer just running a simple  command instead, here is the hack.</p>
<ol>
<li>Log in to your phpMyAdmin, select your WordPress database and open the SQL window.</li>
<li>Insert the following command (assuming your username is “admin”):
<div id="highlighter_51611">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>UPDATE</code> <code>`wp_users` </code><code>SET</code> <code>`user_pass` = MD5(</code><code>'PASSWORD'</code><code>) </code><code>WHERE</code> <code>`wp_users`.`user_login` =`admin` LIMIT 1;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>You’re done. Your password has been successfully replaced by whatever you inserted in space above marked “PASSWORD.”</li>
</ol>
<p><strong>Explanation</strong>. User passwords are stored in the wp_users table. Of course, an MD5 hash is used to secure the password.</p>
<p>We  have to set up an “UPDATE” SQL request and use the built-in MD5() MySQL  function to convert our password to MD5 and then update it. The “WHERE”  clause ensures that we’re updating only the admin’s password. The same  request without the “WHERE” clause would result in all passwords being  updated!</p>
<h3>6. Change Your WordPress Domain Name</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm7.png" alt="Sm7 in 8 Useful WordPress SQL Hacks" width="500" height="195" /></p>
<p><strong>The problem</strong>.  Although it is not recommended, you may want at some point to change  your domain name while keeping your blog and its data. Because WordPress  records your domain name in the database, you have to change the  database in order to connect your new domain name to your WordPress  blog.</p>
<p><strong>The solution</strong>.</p>
<ol>
<li>You guessed it: the first thing to do is log in to your phpMyAdmin and select your WordPress database.</li>
<li>Click the “SQL” button to open the SQL command window. In order to change your WordPress URL, execute this first command:
<div id="highlighter_529424">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>UPDATE</code> <code>wp_options </code><code>SET</code> <code>option_value = </code><code>replace</code><code>(option_value, </code><code>'<a href="http://www.oldsite.com/">http://www.oldsite.com</a>'</code><code>, </code><code>'<a href="http://www.newsite.com/">http://www.newsite.com</a>'</code><code>) </code><code>WHERE</code> <code>option_name = </code><code>'home'</code> <code>OR</code> <code>option_name = </code><code>'siteurl'</code><code>;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>Then, we have to replace the relative URL (guid) of each post. The following command will do that job:
<div id="highlighter_307456">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>UPDATE</code> <code>wp_posts </code><code>SET</code> <code>guid = </code><code>replace</code><code>(guid, </code><code>'<a href="http://www.oldsite.com/">http://www.oldsite.com</a>'</code><code>,</code><code>'<a href="http://www.newsite.com/">http://www.newsite.com</a>'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>We’re  almost done. The last thing to do is a search and replace in the  wp_posts table to make sure that no absolute URL is still here:
<div id="highlighter_897776">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>UPDATE</code> <code>wp_posts </code><code>SET</code> <code>post_content = </code><code>replace</code><code>(post_content, </code><code>'<a href="http://www.oldsite.com/">http://www.oldsite.com</a>'</code><code>, </code><code>'<a href="http://www.newsite.com/">http://www.newsite.com</a>'</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>You’re done. You should be able to log in to your WordPress dashboard using your new URL.</li>
</ol>
<p><strong>Explanation</strong>. To easily change our WordPress domain name, I took advantage of the super-useful MySQL function “<em>replace</em>,” which allows you to replace one term by another.</p>
<h3>7. Display the Number of SQL Queries on Your blog</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm8.png" alt="Sm8 in 8 Useful WordPress SQL Hacks" width="500" height="221" /></p>
<p><strong>The problem</strong>.  When trying to optimize your blog’s loading time, knowing the number of  queries made to the database is important. In order to reduce queries,  the first thing to know is how many queries are made on a single page.</p>
<p><strong>The solution</strong>.</p>
<ol>
<li>This  time, no need to log in to phpMyAdmin. Simply open the footer.php file  in your theme and append the following lines of code:
<div id="highlighter_817430">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>&lt;?php </code><code>if</code> <code>(is_user_logged_in()) { ?&gt;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code> </code><code>&lt;?php </code><code>echo</code> <code>get_num_queries(); ?&gt; queries in &lt;?php timer_stop(1); ?&gt; seconds.</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code>&lt;?php } ?&gt;</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</li>
<li>Save  the file and visit your blog. In the footer, you’ll see the number of  queries made to the WordPress database as well as the time it took to  make them.</li>
</ol>
<p><strong>Explanation</strong>. Seems that many WordPress users aren’t aware of this useful function. The <em>get_num_queries()</em> function returns the number of executed queries during a page load.</p>
<p>Note  that the above code will only display the number of queries to  logged-in users, because regular visitors and search engine bots don’t  need to know about it. But, if you’d like to make it public, simply  remove the <em>if (is_user_logged_in())</em> conditional instruction.</p>
<h3>8. Restore Your WordPress Database</h3>
<p><img src="http://media.smashingmagazine.com/cdn_smash/images/useful-sql-hacks/sm9.png" alt="Sm9 in 8 Useful WordPress SQL Hacks" width="500" height="319" /></p>
<p><strong>The problem</strong>.  Let’s say, for some reason, such as a hacking or upgrade problem, you  have lost your blog data or it has become corrupted. If you have a  backup (and I hope you do!) you will have to import it to your WordPress  database.</p>
<p><strong>The solution</strong>.</p>
<ol>
<li>Log in to phpMyAdmin and select your WordPress database.</li>
<li>Click the “Import” button in the horizontal menu.</li>
<li>Click the “Browse” button and select the most recent database backup on your hard disk.</li>
<li>Click the “Execute” button. If everything went well, your WordPress database is fully functional again.</li>
</ol>
<p><em>This Article was found at </em><a href="http://www.smashingmagazine.com/2008/12/18/8-useful-wordpress-sql-hacks/">Smashingmagazine.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.birdseyeseo.com/2010/08/useful-wordpress-sql-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Local Market Analyzed</title>
		<link>http://www.birdseyeseo.com/2009/09/local-market-analyzed/</link>
		<comments>http://www.birdseyeseo.com/2009/09/local-market-analyzed/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 16:42:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Local Markets]]></category>
		<category><![CDATA[Hickory NC]]></category>
		<category><![CDATA[Local]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Website Design]]></category>

		<guid isPermaLink="false">http://www.birdseyeseo.com/?p=106</guid>
		<description><![CDATA[As you will learn I am a local SEO here in Hickory, NC.  I have thought about many things I could do with this site, and I am learning towards targeting the Hickory Market and doing reviews of local sites and listing the Best sites, and my experiences around town. With this being said if [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As you will learn I am a local SEO here in Hickory, NC.  I have thought about many things I could do with this site, and I am learning towards targeting the Hickory Market and doing reviews of local sites and listing the Best sites, and my experiences around town.</p>
<p>With this being said if you would like to me review your site or would like to exchange links you can email me at <a href="mailto:info@birdseyeseo.com" target="_blank">info@birdseyeseo.com</a>. With that being said, check back often for reviews and discussion about local companies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.birdseyeseo.com/2009/09/local-market-analyzed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Article Marketing For Local Markets</title>
		<link>http://www.birdseyeseo.com/2009/04/article-marketing-for-local-markets/</link>
		<comments>http://www.birdseyeseo.com/2009/04/article-marketing-for-local-markets/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 17:48:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Local Markets]]></category>

		<guid isPermaLink="false">http:/?p=1</guid>
		<description><![CDATA[At a recent conference I was in a discussion about article marketing for links.  The whole recap was basically you would get 10 articles to start out with.  You would begin submitting 5 articles a day to various article directories.  along the way you would progressively add more submissions every day.  Eventually you would have [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>At a recent conference I was in a discussion about article marketing for links.  The whole recap was basically you would get 10 articles to start out with.  You would begin submitting 5 articles a day to various article directories.  along the way you would progressively add more submissions every day.  Eventually you would have an enormous amount of good links from marketing these articles.</p>
<p>This seems like simple marketing, however often people worry about duplicate content penalty.  Well as I have learned from being around the top marketers and SEO&#8217;s in the market is THERE IS NO DUPLICATE CONTENT PENALTY.  This penalty only exist on your site and can be easily prevented by some simple steps.  First of all you must have different title tags for all your pages.  Also you can prevent duplicate content by using the WWW. protection in your .HTACCESS file. If you do not have this here is the code.</p>
<p># Begin non-www page protection #<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com [NC]<br />
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]<br />
&lt;/IfModule&gt;<br />
# End non-www page protection #</p>
<p>There are additional tips to prevent penalties to happen which I will cover in the future.  I will also cover building killer landing pages on the fly with some basic code.  With that being said is article marketing or just getting links better?  Well for long term I believe you should get a mixture of links, whether it is buying them, reciprocal links, article marketing, blogrolls, social media etc.  For a short term or a tweak to an individual page I recommend doing some article marketing.  Why? simply because I hate finding links and the whole process.  With article marketing all you need to do is submit a few articles to the top sites. In a recent test on a local site in need of some link building on some pages the links from the articles showed up almost overnight&#8230;which meant the serp was increased quickly. this was done with only a few links.  Around seven days later the analytics was showing a 55% increase in traffic.</p>
<p><img class="alignleft size-full wp-image-9" title="results" src="http://www.birdseyeseo.com/wp-content/uploads/2009/04/img000024.jpg" alt="results" width="565" height="36" /></p>
<p>That is Real Testing and Real Results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.birdseyeseo.com/2009/04/article-marketing-for-local-markets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
