<?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>WordPress Craftsman &#187; Essentials</title>
	<atom:link href="https://www.wpcraftsman.com/category/essentials/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wpcraftsman.com</link>
	<description>WordPress developer offering code snippets, tips and expert advice</description>
	<lastBuildDate>Sun, 01 Dec 2024 22:08:29 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.7.33</generator>
	<item>
		<title>Debugging AJAX</title>
		<link>https://www.wpcraftsman.com/ajax-debugging/</link>
		<comments>https://www.wpcraftsman.com/ajax-debugging/#comments</comments>
		<pubDate>Sun, 05 Jul 2015 21:43:39 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[diagnostics]]></category>
		<category><![CDATA[errors]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=522</guid>
		<description><![CDATA[I can debug my JavaScript using console.log(), which also displays code errors. I can debug my PHP code using print_r() (which I prefer because it&#8217;s leaner; many use var_dump()). Since I have PHP&#8217;s display_errors directive enabled, and usually I declare error_reporting( E_ALL ^ E_STRICT ) or error_reporting( -1 ), so errors are output within the [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/ajax-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Function Cheat Sheet</title>
		<link>https://www.wpcraftsman.com/image-function-cheat-sheet/</link>
		<comments>https://www.wpcraftsman.com/image-function-cheat-sheet/#comments</comments>
		<pubDate>Tue, 13 Jan 2015 21:22:27 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=143</guid>
		<description><![CDATA[Simply a reference of the six image-related functions I use most often. I have this list printed out and keep it handy; for your convenience I&#8217;ve linked to the WP doc page for each. In case you weren&#8217;t aware, many of these accept either a named size (e.g. &#8216;small&#8217;,'medium&#8217;,'full&#8217;,'your_custom_name&#8217;) or an array of [width,height] (e.g. [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/image-function-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preload Images</title>
		<link>https://www.wpcraftsman.com/preload-images/</link>
		<comments>https://www.wpcraftsman.com/preload-images/#comments</comments>
		<pubDate>Tue, 13 Jan 2015 21:15:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=141</guid>
		<description><![CDATA[Here&#8217;s an easy way to manage your image preloads from anywhere in your PHP functions. We can simply build a globalized array of all image sources prior to outputting the page, then hook into the wp_footer action to output the required Javascript. Each time your code encounters an image source that must be preloaded, simply [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/preload-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Conditional Excerpt Function</title>
		<link>https://www.wpcraftsman.com/conditional-excerpt-function/</link>
		<comments>https://www.wpcraftsman.com/conditional-excerpt-function/#comments</comments>
		<pubDate>Wed, 07 Jan 2015 21:35:01 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[more]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=107</guid>
		<description><![CDATA[I use this function on practically every site that has any posts/archives section. This enables us to display a standardized excerpt inside or outside the Loop. Arguments (all optional): $ex_length the word count $postref the post or text to excerpt. Can be an ID, a post object, a block of text, or if called within [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/conditional-excerpt-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling autosave</title>
		<link>https://www.wpcraftsman.com/disabling-autosave/</link>
		<comments>https://www.wpcraftsman.com/disabling-autosave/#comments</comments>
		<pubDate>Tue, 06 Jan 2015 00:29:13 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[autosave]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[post type]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=97</guid>
		<description><![CDATA[You may already know, custom post types are the real workhorses of most customized WordPress themes. But often, they&#8217;re not meant to be read by the public; they&#8217;re functional things like &#8216;albums&#8217; or &#8216;reservations&#8217; or &#8216;index cards.&#8217; By default, WordPress tries to create auto-drafts of any post type when an author is adding / editing [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/disabling-autosave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command-line helpers</title>
		<link>https://www.wpcraftsman.com/command-line-helpers/</link>
		<comments>https://www.wpcraftsman.com/command-line-helpers/#comments</comments>
		<pubDate>Mon, 05 Jan 2015 21:49:12 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=68</guid>
		<description><![CDATA[Here are two helpful command-line (Linux) tools which are immensely helpful when working on large themes, particularly if you&#8217;re modifying someone else&#8217;s work. Both require you to first navigate to the directory in which your files reside (see below for a primer). 1. Find all instances of something. This will respond with all files in [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/command-line-helpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No comments!</title>
		<link>https://www.wpcraftsman.com/no-comments/</link>
		<comments>https://www.wpcraftsman.com/no-comments/#comments</comments>
		<pubDate>Mon, 05 Jan 2015 21:30:16 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[comments]]></category>

		<guid isPermaLink="false">http://www.wpcraftsman.com/?p=66</guid>
		<description><![CDATA[WordPress is now commonly used as a content-management system for many websites, without any need for common blog functions. Or, the blog functions are announcement-only, comments are unwelcome. Even if you turn off comments for all posts, the admin backend can still get polluted by robot comment requests. That&#8217;s why it&#8217;s a good idea to [&#8230;]]]></description>
		<wfw:commentRss>https://www.wpcraftsman.com/no-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
