<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 07:57:20 +0000</lastBuildDate>
    <item>
      <title>(PHP) Wordpress: Hide Admin Meta Boxes - f6design</title>
      <link>https://snipplr.com/view/63396/wordpress-hide-admin-meta-boxes</link>
      <description>&lt;p&gt;Remove meta boxes from the Wordpress admin area. Useful for simplifying Wordpress' admin interface for your clients. Add this snippet to your Wordpress theme's functions.php file.&lt;/p&gt;</description>
      <pubDate>Fri, 17 Feb 2012 18:18:56 UTC</pubDate>
      <guid>https://snipplr.com/view/63396/wordpress-hide-admin-meta-boxes</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: Comma separated list of taxonomy terms - f6design</title>
      <link>https://snipplr.com/view/63368/wordpress-comma-separated-list-of-taxonomy-terms</link>
      <description>&lt;p&gt;Create a comma separated list of a post's custom taxonomy terms.&lt;/p&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:30:47 UTC</pubDate>
      <guid>https://snipplr.com/view/63368/wordpress-comma-separated-list-of-taxonomy-terms</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: Customize TinyMCE buttons - f6design</title>
      <link>https://snipplr.com/view/61927/wordpress-customize-tinymce-buttons</link>
      <description>&lt;p&gt;Customize the TinyMCE buttons that are displayed in the Wordpress editor. Add this to your Wordpress theme's functions.php file.&lt;/p&gt;</description>
      <pubDate>Fri, 16 Dec 2011 11:39:03 UTC</pubDate>
      <guid>https://snipplr.com/view/61927/wordpress-customize-tinymce-buttons</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: Disable the content editor for a specific page template - f6design</title>
      <link>https://snipplr.com/view/61412/wordpress-disable-the-content-editor-for-a-specific-page-template</link>
      <description>&lt;p&gt;When adding a meta box to a 'page' in Wordpress (as opposed to a post, or custom post type), you might want to disable the default editor.  Use this snippet in your theme's functions.php file to disable the editor for a specific page template.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Dec 2011 21:56:48 UTC</pubDate>
      <guid>https://snipplr.com/view/61412/wordpress-disable-the-content-editor-for-a-specific-page-template</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: Omit width/height attributes from img tag - f6design</title>
      <link>https://snipplr.com/view/61346/wordpress-omit-widthheight-attributes-from-img-tag</link>
      <description>&lt;p&gt;This is an example of omitting the width and height attributes from a thumbnail img tag in Wordpress. Useful if you are working on a responsive design. Use inside The Loop.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Nov 2011 21:22:46 UTC</pubDate>
      <guid>https://snipplr.com/view/61346/wordpress-omit-widthheight-attributes-from-img-tag</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: Query a custom taxonomy - f6design</title>
      <link>https://snipplr.com/view/61337/wordpress-query-a-custom-taxonomy</link>
      <description>&lt;p&gt;Use WP_Query to query a custom taxonomy, using the tax_query parameter.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Nov 2011 18:33:53 UTC</pubDate>
      <guid>https://snipplr.com/view/61337/wordpress-query-a-custom-taxonomy</guid>
    </item>
    <item>
      <title>(PHP) Wordpress: get current taxonomy - f6design</title>
      <link>https://snipplr.com/view/61336/wordpress-get-current-taxonomy</link>
      <description>&lt;p&gt;In Wordpress if you are using a custom taxonomy you can get its details (id, slug, etc) using this snippet.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Nov 2011 17:38:13 UTC</pubDate>
      <guid>https://snipplr.com/view/61336/wordpress-get-current-taxonomy</guid>
    </item>
    <item>
      <title>(PHP) Enforce minimum image dimensions in Wordpress - f6design</title>
      <link>https://snipplr.com/view/61326/enforce-minimum-image-dimensions-in-wordpress</link>
      <description>&lt;p&gt;Add this snippet to your Wordpress theme's functions.php file to reject any image uploads that are below the specified dimensions.&lt;/p&gt;</description>
      <pubDate>Wed, 30 Nov 2011 10:57:33 UTC</pubDate>
      <guid>https://snipplr.com/view/61326/enforce-minimum-image-dimensions-in-wordpress</guid>
    </item>
    <item>
      <title>(PHP) Enable post thumbnails for a Wordpress theme - f6design</title>
      <link>https://snipplr.com/view/61287/enable-post-thumbnails-for-a-wordpress-theme</link>
      <description>&lt;p&gt;This snippet adds support for post thumbnails (a.k.a. 'featured images') to a Wordpress theme. It also adds an additional image size for image thumbnails, hard cropped. This second step is optional.&#13;
&#13;
Add this snippet to your WP theme's functions.php file.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 09:15:06 UTC</pubDate>
      <guid>https://snipplr.com/view/61287/enable-post-thumbnails-for-a-wordpress-theme</guid>
    </item>
    <item>
      <title>(PHP) Load jQuery from CDN, fallback to local (for Wordpress) - f6design</title>
      <link>https://snipplr.com/view/61286/load-jquery-from-cdn-fallback-to-local-for-wordpress</link>
      <description>&lt;p&gt;Add the following to your Wordpress theme's functions.php file. The jQuery paths/URLs might need to be changed to suite your circumstances.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 09:11:44 UTC</pubDate>
      <guid>https://snipplr.com/view/61286/load-jquery-from-cdn-fallback-to-local-for-wordpress</guid>
    </item>
    <item>
      <title>(PHP) Remove unnecessary menu items from Wordpress admin. - f6design</title>
      <link>https://snipplr.com/view/61285/remove-unnecessary-menu-items-from-wordpress-admin</link>
      <description>&lt;p&gt;Simplify the Wordpress admin area for clients by hiding menu items. Add this snippet to your Wordpress theme's functions.php file.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 09:09:14 UTC</pubDate>
      <guid>https://snipplr.com/view/61285/remove-unnecessary-menu-items-from-wordpress-admin</guid>
    </item>
    <item>
      <title>(PHP) Ensure TinyMCE is loaded for Wordpress (for meta boxes) - f6design</title>
      <link>https://snipplr.com/view/61284/ensure-tinymce-is-loaded-for-wordpress-for-meta-boxes</link>
      <description>&lt;p&gt;If you are creating a custom post type in Wordpress, and turn off the 'editor' capability, then TinyMCE is not loaded. This means any WYSIWYG meta box textareas will fail. Add this snippet to your theme's functions.php file to load the required TinyMCE JS and styles.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 09:07:14 UTC</pubDate>
      <guid>https://snipplr.com/view/61284/ensure-tinymce-is-loaded-for-wordpress-for-meta-boxes</guid>
    </item>
    <item>
      <title>(PHP) Change position of featured image box in Wordpress - f6design</title>
      <link>https://snipplr.com/view/61283/change-position-of-featured-image-box-in-wordpress</link>
      <description>&lt;p&gt;Add this to your Wordpress theme's functions.php file. It allows you to move the 'featured image' upload/select box from the admin sidebar to another position on the page, to give it more prominence.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 08:35:38 UTC</pubDate>
      <guid>https://snipplr.com/view/61283/change-position-of-featured-image-box-in-wordpress</guid>
    </item>
    <item>
      <title>(Apache) Stop directory index browsing - f6design</title>
      <link>https://snipplr.com/view/61282/stop-directory-index-browsing</link>
      <description>&lt;p&gt;This snippet will stop people from snooping in your Apache directories. This is useful if you have directories containing files, but no index HTML/PHP document.&lt;/p&gt;</description>
      <pubDate>Tue, 29 Nov 2011 08:33:03 UTC</pubDate>
      <guid>https://snipplr.com/view/61282/stop-directory-index-browsing</guid>
    </item>
    <item>
      <title>(PHP) Convert all HTML entities in database to actual characters - f6design</title>
      <link>https://snipplr.com/view/59594/convert-all-html-entities-in-database-to-actual-characters</link>
      <description>&lt;p&gt;Sometimes a legacy database will have HTML entities stored in it.&#13;
&#13;
This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.&lt;/p&gt;</description>
      <pubDate>Mon, 10 Oct 2011 17:06:51 UTC</pubDate>
      <guid>https://snipplr.com/view/59594/convert-all-html-entities-in-database-to-actual-characters</guid>
    </item>
    <item>
      <title>(jQuery) Integrate a lightbox with Galleria plugin - f6design</title>
      <link>https://snipplr.com/view/53778/integrate-a-lightbox-with-galleria-plugin</link>
      <description>&lt;p&gt;Makes the images in  Galleria gallery clickable, so you can see the full sized image in Fancybox (or the ligthbox of your preference). Get Galleria is here: http://galleria.aino.se/&lt;/p&gt;</description>
      <pubDate>Thu, 19 May 2011 16:37:54 UTC</pubDate>
      <guid>https://snipplr.com/view/53778/integrate-a-lightbox-with-galleria-plugin</guid>
    </item>
    <item>
      <title>(CSS) 100% scale background image (doesn\'t preserve aspect ratio) - f6design</title>
      <link>https://snipplr.com/view/53491/100-scale-background-image-doesnt-preserve-aspect-ratio</link>
      <description>&lt;p&gt;Note that this approach DOESN'T maintain the image's aspect ratio. For a pure CSS technique that does that you need a CSS3 approach.&lt;/p&gt;</description>
      <pubDate>Fri, 13 May 2011 07:53:55 UTC</pubDate>
      <guid>https://snipplr.com/view/53491/100-scale-background-image-doesnt-preserve-aspect-ratio</guid>
    </item>
    <item>
      <title>(ActionScript 3) Set depth in AS3 - f6design</title>
      <link>https://snipplr.com/view/51110/set-depth-in-as3</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:39:23 UTC</pubDate>
      <guid>https://snipplr.com/view/51110/set-depth-in-as3</guid>
    </item>
    <item>
      <title>(PHP) Copyright notice with a date range - f6design</title>
      <link>https://snipplr.com/view/49659/copyright-notice-with-a-date-range</link>
      <description>&lt;p&gt;Displays a copyright notice in the form 2011 - 2012, where the first year is hard coded and the second year is dynamically generated. If the start and current year are identical, only the start year is displayed.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Feb 2011 19:55:20 UTC</pubDate>
      <guid>https://snipplr.com/view/49659/copyright-notice-with-a-date-range</guid>
    </item>
    <item>
      <title>(jQuery) Remove/restore a form field's default value on focus/blur - f6design</title>
      <link>https://snipplr.com/view/49652/removerestore-a-form-fields-default-value-on-focusblur</link>
      <description>&lt;p&gt;If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank).&#13;
&#13;
To use give your form field a class of 'default-value'&lt;/p&gt;</description>
      <pubDate>Fri, 25 Feb 2011 17:15:27 UTC</pubDate>
      <guid>https://snipplr.com/view/49652/removerestore-a-form-fields-default-value-on-focusblur</guid>
    </item>
    <item>
      <title>(MySQL) Put a mysql connection into UTF-8 mode - f6design</title>
      <link>https://snipplr.com/view/49642/put-a-mysql-connection-into-utf8-mode</link>
      <description>&lt;p&gt;If you are trying to extract utf8 encoded data from mysql, and it isn't working properly, try executing this command on your mysql connection prior to your select statement.&lt;/p&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:24:44 UTC</pubDate>
      <guid>https://snipplr.com/view/49642/put-a-mysql-connection-into-utf8-mode</guid>
    </item>
    <item>
      <title>(PHP) Get file extension from a string - f6design</title>
      <link>https://snipplr.com/view/49638/get-file-extension-from-a-string</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 25 Feb 2011 12:26:29 UTC</pubDate>
      <guid>https://snipplr.com/view/49638/get-file-extension-from-a-string</guid>
    </item>
    <item>
      <title>(PHP) Re-index an array - f6design</title>
      <link>https://snipplr.com/view/49586/reindex-an-array</link>
      <description>&lt;p&gt;Re-indexes an array so that the array keys count up from zero. This is useful if you have previously removed some array nodes.&lt;/p&gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:18:39 UTC</pubDate>
      <guid>https://snipplr.com/view/49586/reindex-an-array</guid>
    </item>
    <item>
      <title>(PHP) Remove empty elements from an array - f6design</title>
      <link>https://snipplr.com/view/49584/remove-empty-elements-from-an-array</link>
      <description>&lt;p&gt;Removes 'false', '0', 'null' or '' from the array&lt;/p&gt;</description>
      <pubDate>Thu, 24 Feb 2011 17:06:19 UTC</pubDate>
      <guid>https://snipplr.com/view/49584/remove-empty-elements-from-an-array</guid>
    </item>
    <item>
      <title>(PHP) Display current year in PHP - f6design</title>
      <link>https://snipplr.com/view/42749/display-current-year-in-php</link>
      <description>&lt;p&gt;Useful for displaying copyright notices on a website.&lt;/p&gt;</description>
      <pubDate>Fri, 22 Oct 2010 10:22:35 UTC</pubDate>
      <guid>https://snipplr.com/view/42749/display-current-year-in-php</guid>
    </item>
    <item>
      <title>(ActionScript 3) Draw a rectangle using AS3 - f6design</title>
      <link>https://snipplr.com/view/42687/draw-a-rectangle-using-as3</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 21 Oct 2010 17:03:11 UTC</pubDate>
      <guid>https://snipplr.com/view/42687/draw-a-rectangle-using-as3</guid>
    </item>
    <item>
      <title>(PHP) Twitter RSS Feed Parser to display tweets on a website (includes caching) - f6design</title>
      <link>https://snipplr.com/view/41841/twitter-rss-feed-parser-to-display-tweets-on-a-website-includes-caching</link>
      <description>&lt;p&gt;To use just edit the Twitter user ID which appears at the bottom of the snippet. You may want to change the location where the tweets are cached, by default they are stored at the root level of your domain. The reason for caching is that Twitter limits the number of times an RSS feed can be accessed per hour to 150.&lt;/p&gt;</description>
      <pubDate>Fri, 08 Oct 2010 12:47:32 UTC</pubDate>
      <guid>https://snipplr.com/view/41841/twitter-rss-feed-parser-to-display-tweets-on-a-website-includes-caching</guid>
    </item>
    <item>
      <title>(HTML) Use Google CDN jQuery but fallback to local copy - f6design</title>
      <link>https://snipplr.com/view/41234/use-google-cdn-jquery-but-fallback-to-local-copy</link>
      <description>&lt;p&gt;Grab Google CDN's jQuery. Fall back to local if necessary, Taken from the HTML5 Boilerplate.&lt;/p&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:24:57 UTC</pubDate>
      <guid>https://snipplr.com/view/41234/use-google-cdn-jquery-but-fallback-to-local-copy</guid>
    </item>
    <item>
      <title>(HTML) Force IE and to use the latest rendering engine and/or Chrome Frame - f6design</title>
      <link>https://snipplr.com/view/41232/force-ie-and-to-use-the-latest-rendering-engine-andor-chrome-frame</link>
      <description>&lt;p&gt;Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame. Taken from the HTML5 Boilerplate.&lt;/p&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:16:10 UTC</pubDate>
      <guid>https://snipplr.com/view/41232/force-ie-and-to-use-the-latest-rendering-engine-andor-chrome-frame</guid>
    </item>
  </channel>
</rss>
