<?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 15:06:26 +0000</lastBuildDate>
    <item>
      <title>(PHP) The Events Calendar - Upcoming Events Shortcode - crypticsoft</title>
      <link>https://snipplr.com/view/73482/the-events-calendar--upcoming-events-shortcode</link>
      <description>&lt;p&gt;This shortcode was tested with The Events Calendar version 3.3.1 &#13;
Usage: [upcoming_events limit="6"]&lt;/p&gt;</description>
      <pubDate>Thu, 23 Jan 2014 04:20:08 UTC</pubDate>
      <guid>https://snipplr.com/view/73482/the-events-calendar--upcoming-events-shortcode</guid>
    </item>
    <item>
      <title>(PHP) Pinnacle Cart PDO MySQL : Product Class - crypticsoft</title>
      <link>https://snipplr.com/view/73086/pinnacle-cart-pdo-mysql--product-class</link>
      <description>&lt;p&gt;While the Pinnacle Cart API can handle some of this, I found it easier to query the database directly.&#13;
This PCProduct class was developed for integrating Pinnacle Cart with WordPress with the following methods: &#13;
- get_product($id)&#13;
- get_product_by_product_id($id)&#13;
- get_product_box($row)&#13;
- get_top($cid,$cnt,$side)&#13;
- get_products_by_category($cid)&#13;
- get_categories($parent,$order,$level)&#13;
- get_recent($limit)&#13;
&#13;
You will need to edit the following methods to match your cart paths / database settings:&#13;
- cart_path()&#13;
- cart_uri()&#13;
- get_connection() -- This is the PDO connection, fill in the host, dbname, user, password&#13;
- getProductUrl() -- Check the SEO settings, I'm using the 3.7 custom URL: %CategoryName%/%ProductTitle%/&lt;/p&gt;</description>
      <pubDate>Wed, 04 Dec 2013 22:51:18 UTC</pubDate>
      <guid>https://snipplr.com/view/73086/pinnacle-cart-pdo-mysql--product-class</guid>
    </item>
    <item>
      <title>(PHP) REST API products and categories from pinnacleCart - crypticsoft</title>
      <link>https://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart</link>
      <description>&lt;p&gt;This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs.&#13;
&#13;
Example request URLs to get products and categories:&#13;
&#13;
# Get product by product_id (XX##) or keyword(s)&#13;
~/products/getProducts/search/10/oj70/oj77/oj75&#13;
&#13;
# Recently added products by CategoryID (/cID/batchSize)&#13;
~/products/getProductsByCategory/92/10&#13;
&#13;
# Recently added product images by CategoryID (/cID/batchSize) &#13;
-- This was to remove the 'Description' key/value for slide shows&#13;
~/products/getProductImagesByCategory/92/10&#13;
&#13;
# Recently added products by limit&#13;
~/products/getRecentlyAdded/20&#13;
&#13;
# Get all categories&#13;
~/products/getCategories&lt;/p&gt;</description>
      <pubDate>Sat, 18 Aug 2012 02:50:58 UTC</pubDate>
      <guid>https://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart</guid>
    </item>
    <item>
      <title>(PHP) Limit WordPress the_content by words - crypticsoft</title>
      <link>https://snipplr.com/view/65744/limit-wordpress-thecontent-by-words</link>
      <description>&lt;p&gt;I need this function all too often and figured I'd share it. Limit the_content() by word limit by using built in WordPress functions.&lt;/p&gt;</description>
      <pubDate>Fri, 22 Jun 2012 02:14:14 UTC</pubDate>
      <guid>https://snipplr.com/view/65744/limit-wordpress-thecontent-by-words</guid>
    </item>
    <item>
      <title>(PHP) WordPress Portfolio Custom Post Type Filtering - crypticsoft</title>
      <link>https://snipplr.com/view/65701/wordpress-portfolio-custom-post-type-filtering</link>
      <description>&lt;p&gt;Here is a quick example on how to generate your own portfolio with filtering based on a taxonomy (in this case 'Solutions').&lt;/p&gt;</description>
      <pubDate>Tue, 19 Jun 2012 09:25:30 UTC</pubDate>
      <guid>https://snipplr.com/view/65701/wordpress-portfolio-custom-post-type-filtering</guid>
    </item>
    <item>
      <title>(PHP) RSS Feed Caching - crypticsoft</title>
      <link>https://snipplr.com/view/65477/rss-feed-caching</link>
      <description>&lt;p&gt;Note: This also uses a flat file to cache the results, be sure to also upload the 'rss_cache.txt' file. &#13;
&#13;
Usage:&#13;
&lt;?php&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 08 Jun 2012 09:23:58 UTC</pubDate>
      <guid>https://snipplr.com/view/65477/rss-feed-caching</guid>
    </item>
    <item>
      <title>(PHP) Meteor Slides : WordPress Plugin : Adding Excerpt for Slides - crypticsoft</title>
      <link>https://snipplr.com/view/65267/meteor-slides--wordpress-plugin--adding-excerpt-for-slides</link>
      <description>&lt;p&gt;For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.&lt;/p&gt;</description>
      <pubDate>Wed, 30 May 2012 08:10:43 UTC</pubDate>
      <guid>https://snipplr.com/view/65267/meteor-slides--wordpress-plugin--adding-excerpt-for-slides</guid>
    </item>
    <item>
      <title>(PHP) Parse PHP files into ASP extensions - crypticsoft</title>
      <link>https://snipplr.com/view/65195/parse-php-files-into-asp-extensions</link>
      <description>&lt;p&gt;For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it happens :)&lt;/p&gt;</description>
      <pubDate>Sat, 26 May 2012 02:13:00 UTC</pubDate>
      <guid>https://snipplr.com/view/65195/parse-php-files-into-asp-extensions</guid>
    </item>
    <item>
      <title>(PHP) WordPress Links Manager - Display a random link from a category - crypticsoft</title>
      <link>https://snipplr.com/view/64494/wordpress-links-manager--display-a-random-link-from-a-category</link>
      <description>&lt;p&gt;Sometimes you just want a random link to display and outside of the default format, this works perfectly and removes all default html (list items / headings).&lt;/p&gt;</description>
      <pubDate>Wed, 11 Apr 2012 04:08:22 UTC</pubDate>
      <guid>https://snipplr.com/view/64494/wordpress-links-manager--display-a-random-link-from-a-category</guid>
    </item>
    <item>
      <title>(PHP) WordPress Query Taxonomy by ID - crypticsoft</title>
      <link>https://snipplr.com/view/63640/wordpress-query-taxonomy-by-id</link>
      <description>&lt;p&gt;When you create a custom post type and need to query by ID then you can pass in the 'field' and the 'terms' with the ID for that post type.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Mar 2012 00:09:18 UTC</pubDate>
      <guid>https://snipplr.com/view/63640/wordpress-query-taxonomy-by-id</guid>
    </item>
    <item>
      <title>(PHP) Check for href in string - crypticsoft</title>
      <link>https://snipplr.com/view/50030/check-for-href-in-string</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 04 Mar 2011 08:39:59 UTC</pubDate>
      <guid>https://snipplr.com/view/50030/check-for-href-in-string</guid>
    </item>
    <item>
      <title>(PHP) Wordpress : Custom columns for edit / post views in the admin - crypticsoft</title>
      <link>https://snipplr.com/view/49895/wordpress--custom-columns-for-edit--post-views-in-the-admin</link>
      <description>&lt;p&gt;The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views.&#13;
&#13;
Note: You will want to change instances of "mysite_listings" with your own post type as well update the column I've defined to match your own.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 07:25:23 UTC</pubDate>
      <guid>https://snipplr.com/view/49895/wordpress--custom-columns-for-edit--post-views-in-the-admin</guid>
    </item>
    <item>
      <title>(PHP) Wordpress : Register Post Type and Taxonomy - crypticsoft</title>
      <link>https://snipplr.com/view/49893/wordpress--register-post-type-and-taxonomy</link>
      <description>&lt;p&gt;Example shows how to  register post types for : &#13;
* Listings (defined as 'mysite_listings' with the rewrite slug 'lookup')&#13;
* Then registers the 'usa_states' taxonomy to the mysite_listings post type.&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 07:15:27 UTC</pubDate>
      <guid>https://snipplr.com/view/49893/wordpress--register-post-type-and-taxonomy</guid>
    </item>
    <item>
      <title>(PHP) Detect Location by IP (City, State) - crypticsoft</title>
      <link>https://snipplr.com/view/48386/detect-location-by-ip-city-state</link>
      <description>&lt;p&gt;returns "City, State" if found otherwise defaults to "Hollywood, CA"&lt;/p&gt;</description>
      <pubDate>Fri, 04 Feb 2011 09:07:03 UTC</pubDate>
      <guid>https://snipplr.com/view/48386/detect-location-by-ip-city-state</guid>
    </item>
  </channel>
</rss>
