<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adam Rasheed on Medium]]></title>
        <description><![CDATA[Stories by Adam Rasheed on Medium]]></description>
        <link>https://medium.com/@adamrasheed?source=rss-6c6530c7f4c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ov1wJH0ghbxr4utV.jpg</url>
            <title>Stories by Adam Rasheed on Medium</title>
            <link>https://medium.com/@adamrasheed?source=rss-6c6530c7f4c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:59:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adamrasheed/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Some Useful SQL Queries for Wordpress Migration]]></title>
            <link>https://medium.com/@adamrasheed/some-useful-sql-queries-for-wordpress-migration-797929ab39e0?source=rss-6c6530c7f4c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/797929ab39e0</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Adam Rasheed]]></dc:creator>
            <pubDate>Fri, 13 Oct 2017 16:46:01 GMT</pubDate>
            <atom:updated>2017-10-15T21:32:49.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IotxQS_A5CCOmbHIoiyw4Q.jpeg" /></figure><p>Have a huge Wordpress migration project on your hands? Here are some SQL queries that helped me manage 10,000+ post changes when shared hosting prevented me from using Wordpress admin panel’s bulk editing tools.</p><h3>Edit Draft/Trash status of of your posts</h3><pre>UPDATE wp_posts SET post_status = ‘STATUS’ WHERE post_status = ‘static’;</pre><p>Change STATUS to the status you want to change to, and ‘static’ to what you want to change from.</p><p>The available status’ are (all lowercase): publish, draft, and draft.</p><h3>Find and Delete Duplicate Posts</h3><p>Here’s how you first find duplicate posts:</p><pre>SELECT a.ID, a.post_title, a.post_type, a.post_status<br>FROM wp_posts AS a   <br>   INNER JOIN (<br>      SELECT post_title, MIN( id )AS min_id<br>      FROM wp_posts<br>      WHERE post_type = &#39;post&#39;<br>      AND post_status = &#39;publish&#39;<br>      GROUP BY post_title<br>      HAVING COUNT( * ) &gt; 1<br>   ) AS b ON b.post_title = a.post_title<br>AND b.min_id &lt;&gt; a.id<br>AND a.post_type = &#39;post&#39;<br>AND a.post_status = &#39;publish&#39;</pre><p>Of course, you can change the post status do whatever you want to identify. Once you’ve identified the duplicated posts, you can make a simple change to the query and execute it:</p><pre>DELETE a.*<br>FROM wp_posts AS a   <br>   INNER JOIN (<br>      SELECT post_title, MIN( id )AS min_id<br>      FROM wp_posts<br>      WHERE post_type = &#39;post&#39;<br>      AND post_status = &#39;publish&#39;<br>      GROUP BY post_title<br>      HAVING COUNT( * ) &gt; 1<br>   ) AS b ON b.post_title = a.post_title<br>AND b.min_id &lt;&gt; a.id<br>AND a.post_type = &#39;post&#39;<br>AND a.post_status = &#39;publish&#39;</pre><h3>Delete All Posts From a Category</h3><p>This was super-useful to me when I had to delete 5,000 posts from a category.</p><p>First, find the post ID of your category. Let’s say its 15.</p><p>Then, use this SQL query to <strong>find </strong>them:</p><pre>SELECT *<br>FROM wp_posts a<br>LEFT JOIN wp_term_relationships b ON ( a.ID = b.object_id )<br>LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id )<br>LEFT JOIN wp_term_taxonomy d ON ( d.term_taxonomy_id = b.term_taxonomy_id )<br>LEFT JOIN wp_terms e ON ( e.term_id = d.term_id )<br>WHERE e.term_id = 15</pre><p>Notice that I put the category id 15 at the end there.</p><p>Now, time to <strong>delete</strong> using the query below:</p><pre>delete a,b,c,d<br>FROM wp_posts a<br>LEFT JOIN wp_term_relationships b ON ( a.ID = b.object_id )<br>LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id )<br>LEFT JOIN wp_term_taxonomy d ON ( d.term_taxonomy_id = b.term_taxonomy_id )<br>LEFT JOIN wp_terms e ON ( e.term_id = d.term_id )<br>WHERE e.term_id = 15</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=797929ab39e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing The Hustle: A Guide for Freelancers]]></title>
            <link>https://medium.com/@adamrasheed/embracing-the-hustle-a-guide-for-freelancers-ed36e2aacd3c?source=rss-6c6530c7f4c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed36e2aacd3c</guid>
            <dc:creator><![CDATA[Adam Rasheed]]></dc:creator>
            <pubDate>Wed, 01 Apr 2015 23:40:29 GMT</pubDate>
            <atom:updated>2015-04-13T19:32:08.895Z</atom:updated>
            <content:encoded><![CDATA[<p>Freelancing can feel like the biggest gift in the world and, at times, the biggest curse in the world.</p><p><em>Its a reality filled with moments of feast and famine and contemplation of total self-doubt.</em></p><p>If you&#39;ve been freelancing for more than a few months and you disagree, you’re lying.</p><p>At the end of the day, <strong>we just want to create kick-ass things all the time</strong> (or at least when we’re feeling creative), but if you’re doing this full-time, it simply isn&#39;t the case.</p><p>When you’re doing this for money, you’re not hired for creativity. You’re hired to solve a problem, creatively. You have to have a certain amount of money coming in every month out of which you put away 30% for Uncle Sam. You have to be running a full-fledged business.</p><p>It’s tough. I get it.</p><p>Here’s the thing. Running the business, getting clients, taking care of the bookkeeping in the beginning, while really tedious and boring, is what lets us do what we love the most!</p><p>So how are we as creative professionals supposed to keep our energy for doing what we do the most?</p><h4>The Most Important Thing</h4><p><strong>The biggest thing we have to be focused on (besides our work) is getting good clients</strong>. The rest can be delegated or automated.</p><p>Especially when you’re starting out without a good network of people or extensive client base, getting your first handful of clients can be the biggest mountain we have to climb,and it often is. However, if you can just do this one thing, the rest is a breeze.</p><p>The best tried-and-true method is simply to roll up your sleeves every morning and call up every prospect you can. Enjoy the process of the hustle. Embrace it. Revel in the fact that you slowly inching your way towards your next client. Every single thing that you’re doing is something that you’re competition isn&#39;t. Slowly but surely, you building something of yourself and your business.</p><h4>The Specifics</h4><p>Depending on what you do you can call business listed in a phone book, to contacting your local ad agencies, to joining chambers of commerce.</p><p>Once you&#39;ve figured out where to get your ideal clients from. Diligently get in touch with new ones every single day. Including weekends. This is what separates the shady scam artists on Craigslist to you.</p><h4>The 10 Before 10</h4><p>What do you do to actually get specific, measurable improvement in both your sales ability and your business? There’s a profoundly simple solution.</p><p><strong>Call 10 leads or prospects before 10 am every day.</strong> Then follow up with the leads you called two days ago from 10am to 11am.</p><p>This will not only help you grow a thick skin (you’ll get a LOT of No’s in the beginning), but it will help you look at your sales process, but figure out when you should talk and when you need to shut up and listen.</p><p>It will take some some, but I guarantee you that after a month of dialing every morning, you will not only have a new insight of how to approach prospects, but a lot more business.</p><h4>Is It Worth It?</h4><p>It really is a matter of “If it was easy, everyone else would be doing it”. Every morning that you’re dialing and getting in touch with prospects, is a morning that another freelancer is asleep or wasting time worrying about what color he should make his website footer background.</p><p>If beating the competition doesn&#39;t do it for you, then instead take pride in the fact that you’re getting up every morning and really spreading word about the service you’re providing people.</p><p>If you’re a designer, you beautifying things around you.</p><p>If you’re a writer, you’re allowing people to immerse themselves in the information you’re providing.</p><p>If you’re a graphic artist, you’re allowing people to take a moment out of their busy lives and appreciate something.</p><p>You provide true value to people. It’s your duty to let the world know.</p><p>Roll up your sleeves, open up the spreadsheet of your contacts or your favorite CRM, and start dialing.</p><p><strong>Embrace the Hustle and win.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed36e2aacd3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>