<?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 21:24:29 +0000</lastBuildDate>
    <item>
      <title>(PHP) Wordpress function to upload image and set as featured image - krike</title>
      <link>https://snipplr.com/view/68150/wordpress-function-to-upload-image-and-set-as-featured-image</link>
      <description>&lt;p&gt;A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID.&#13;
&#13;
This function is part of the WPelements library class available on Github. Feedback / suggestions / improvements are always welcome.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Nov 2012 20:12:31 UTC</pubDate>
      <guid>https://snipplr.com/view/68150/wordpress-function-to-upload-image-and-set-as-featured-image</guid>
    </item>
    <item>
      <title>(PHP) Minify code function - krike</title>
      <link>https://snipplr.com/view/68149/minify-code-function</link>
      <description>&lt;p&gt;A usefull function to minify code or string. This is part of the WPelements library class available on Github.&#13;
&#13;
Feedback / suggestions / improvements are welcome.&lt;/p&gt;</description>
      <pubDate>Wed, 07 Nov 2012 20:10:17 UTC</pubDate>
      <guid>https://snipplr.com/view/68149/minify-code-function</guid>
    </item>
    <item>
      <title>(PHP) wordpress breadcrumb - krike</title>
      <link>https://snipplr.com/view/60766/wordpress-breadcrumb</link>
      <description>&lt;p&gt;A custom breadcrumb function for WordPress that I created for a client.&#13;
&#13;
You can pass 2 arguments, the first being the text you want to display in front of the breadcrumb and the second is to hide the home item in the breadcrumb&#13;
&#13;
It will give each item a class and also the last item will receive a class active so you can style it more easily. I always welcome feedback (good or bad)&lt;/p&gt;</description>
      <pubDate>Sun, 13 Nov 2011 21:10:05 UTC</pubDate>
      <guid>https://snipplr.com/view/60766/wordpress-breadcrumb</guid>
    </item>
    <item>
      <title>(PHP) Wordpress MU timthumb fix - krike</title>
      <link>https://snipplr.com/view/43129/wordpress-mu-timthumb-fix</link>
      <description>&lt;p&gt;This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!)&#13;
 &#13;
Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be inside the wordpress loop to work)&#13;
 &#13;
&#13;
The function:&#13;
$thumb = get_timthumb_thumbnail($post-&gt;ID);&#13;
&#13;
&#13;
I've tested this successfully on my servers so please let me know if you are having any problem with it.&lt;/p&gt;</description>
      <pubDate>Thu, 28 Oct 2010 21:19:49 UTC</pubDate>
      <guid>https://snipplr.com/view/43129/wordpress-mu-timthumb-fix</guid>
    </item>
  </channel>
</rss>
