<?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 12:47:29 +0000</lastBuildDate>
    <item>
      <title>(PHP) WordPress - redirect to the post instead of archive page when search query returns single result - adambundy</title>
      <link>https://snipplr.com/view/101207/wordpress--redirect-to-the-post-instead-of-archive-page-when-search-query-returns-single-result</link>
      <description>&lt;p&gt;Courtesy Kevin Chard at WPSnipp.com. &#13;
&#13;
Adding this snippet to the functions.php of your wordpress theme will redirect your search to the post automatically when wordpress only returns a single search result.&lt;/p&gt;</description>
      <pubDate>Thu, 28 May 2015 05:43:21 UTC</pubDate>
      <guid>https://snipplr.com/view/101207/wordpress--redirect-to-the-post-instead-of-archive-page-when-search-query-returns-single-result</guid>
    </item>
    <item>
      <title>(PHP) WordPress Remove buttons from the TinyMCE editor - adambundy</title>
      <link>https://snipplr.com/view/80977/wordpress-remove-buttons-from-the-tinymce-editor</link>
      <description>&lt;p&gt;Thanks to Tom McFarlin for this: https://gist.github.com/tommcfarlin/86e4f040bcc641a86f59&lt;/p&gt;</description>
      <pubDate>Thu, 06 Nov 2014 04:49:20 UTC</pubDate>
      <guid>https://snipplr.com/view/80977/wordpress-remove-buttons-from-the-tinymce-editor</guid>
    </item>
    <item>
      <title>(PHP) Wordpress check if post ID exists - adambundy</title>
      <link>https://snipplr.com/view/75696/wordpress-check-if-post-id-exists</link>
      <description>&lt;p&gt;Thanks to Tom McFarlin for this.&#13;
&#13;
http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264&lt;/p&gt;</description>
      <pubDate>Wed, 30 Jul 2014 01:15:17 UTC</pubDate>
      <guid>https://snipplr.com/view/75696/wordpress-check-if-post-id-exists</guid>
    </item>
    <item>
      <title>(PHP) Wordpress insert post attachments at custom size linked to custom size - adambundy</title>
      <link>https://snipplr.com/view/72339/wordpress-insert-post-attachments-at-custom-size-linked-to-custom-size</link>
      <description>&lt;p&gt;To insert custom loop of post attachments as images (at core or custom size) linked not to full size image but custom-configured (or core) size.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Sep 2013 00:07:49 UTC</pubDate>
      <guid>https://snipplr.com/view/72339/wordpress-insert-post-attachments-at-custom-size-linked-to-custom-size</guid>
    </item>
    <item>
      <title>(PHP) Wordpress breadcrumbs based on wp_nav_menu instead of page structure - adambundy</title>
      <link>https://snipplr.com/view/71920/wordpress-breadcrumbs-based-on-wpnavmenu-instead-of-page-structure</link>
      <description>&lt;p&gt;Thanks to Stephen Harris for this &gt; http://wordpress.stackexchange.com/questions/50425/show-current-navigation-path-from-menu&lt;/p&gt;</description>
      <pubDate>Sat, 20 Jul 2013 05:42:57 UTC</pubDate>
      <guid>https://snipplr.com/view/71920/wordpress-breadcrumbs-based-on-wpnavmenu-instead-of-page-structure</guid>
    </item>
    <item>
      <title>(PHP) Wordpress - get an RSS feed, display items with a loop - adambundy</title>
      <link>https://snipplr.com/view/69380/wordpress--get-an-rss-feed-display-items-with-a-loop</link>
      <description>&lt;p&gt;Thanks Dan Gayle.&#13;
http://www.dangayle.com/import-feeds-wordpress-fetch-feed/&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2013 03:29:22 UTC</pubDate>
      <guid>https://snipplr.com/view/69380/wordpress--get-an-rss-feed-display-items-with-a-loop</guid>
    </item>
    <item>
      <title>(PHP) WordPress - change the password request form on password-protected posts and pages - adambundy</title>
      <link>https://snipplr.com/view/68565/wordpress--change-the-password-request-form-on-passwordprotected-posts-and-pages</link>
      <description>&lt;p&gt;Thanks to Tummel.me &#13;
&#13;
Works on newer (~3.4) versions of WP.&lt;/p&gt;</description>
      <pubDate>Thu, 15 Nov 2012 05:25:14 UTC</pubDate>
      <guid>https://snipplr.com/view/68565/wordpress--change-the-password-request-form-on-passwordprotected-posts-and-pages</guid>
    </item>
    <item>
      <title>(PHP) Wordpress - list author comments on Author page - adambundy</title>
      <link>https://snipplr.com/view/68109/wordpress--list-author-comments-on-author-page</link>
      <description>&lt;p&gt;Thanks to @kaiser on WP answers for this.&#13;
&#13;
Place this function in your functions.php file, then use it in your template with the function call like:&#13;
&#13;
wpse19316_author_comments( 100 );&lt;/p&gt;</description>
      <pubDate>Tue, 06 Nov 2012 05:35:47 UTC</pubDate>
      <guid>https://snipplr.com/view/68109/wordpress--list-author-comments-on-author-page</guid>
    </item>
    <item>
      <title>(PHP) Wordpress exclude certain category IDs from main or front page - adambundy</title>
      <link>https://snipplr.com/view/67921/wordpress-exclude-certain-category-ids-from-main-or-front-page</link>
      <description>&lt;p&gt;Add to functions.php. Replace IDs (64, 104 below) with categories you want to exclude.&lt;/p&gt;</description>
      <pubDate>Thu, 25 Oct 2012 03:10:19 UTC</pubDate>
      <guid>https://snipplr.com/view/67921/wordpress-exclude-certain-category-ids-from-main-or-front-page</guid>
    </item>
    <item>
      <title>(PHP) Wordpress - Add Buttons in the Visual Editor - adambundy</title>
      <link>https://snipplr.com/view/61955/wordpress--add-buttons-in-the-visual-editor</link>
      <description>&lt;p&gt;Courtesy CSSTricks (http://css-tricks.com/snippets/wordpress/turn-on-more-buttons-in-the-wordpress-visual-editor/)&lt;/p&gt;</description>
      <pubDate>Sun, 18 Dec 2011 11:34:28 UTC</pubDate>
      <guid>https://snipplr.com/view/61955/wordpress--add-buttons-in-the-visual-editor</guid>
    </item>
    <item>
      <title>(PHP) Wordpress Image Gallery Short Code Using Post Attachments - adambundy</title>
      <link>https://snipplr.com/view/61936/wordpress-image-gallery-short-code-using-post-attachments</link>
      <description>&lt;p&gt;UPDATE: might be easier or faster to use this now (also courtesy Pippin): http://pippinsplugins.com/get-all-attached-media/&#13;
&#13;
**courtesy Pippin Williamson (http://pippinsplugins.com/image-gallery-short-code-using-post-attachments/)&#13;
&#13;
use shortcode [photo_gallery] to display the gallery&lt;/p&gt;</description>
      <pubDate>Sat, 17 Dec 2011 02:36:51 UTC</pubDate>
      <guid>https://snipplr.com/view/61936/wordpress-image-gallery-short-code-using-post-attachments</guid>
    </item>
    <item>
      <title>(PHP) Wordpress redirect non-logged-in visitors - adambundy</title>
      <link>https://snipplr.com/view/59799/wordpress-redirect-nonloggedin-visitors</link>
      <description>&lt;p&gt;Place at the top of your header.php to redirect visitors who are not logged-in to the Wordpress admin. I use this to redirect to a simple HTML 'coming soon' page while sites are in development.&lt;/p&gt;</description>
      <pubDate>Sat, 15 Oct 2011 14:05:07 UTC</pubDate>
      <guid>https://snipplr.com/view/59799/wordpress-redirect-nonloggedin-visitors</guid>
    </item>
    <item>
      <title>(PHP) WordPress Enqueue jQuery - Google CDN - adambundy</title>
      <link>https://snipplr.com/view/58112/wordpress-enqueue-jquery--google-cdn</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 24 Aug 2011 01:58:59 UTC</pubDate>
      <guid>https://snipplr.com/view/58112/wordpress-enqueue-jquery--google-cdn</guid>
    </item>
    <item>
      <title>(PHP) Wordpress pre-populate main content with content, restrict to post type - adambundy</title>
      <link>https://snipplr.com/view/52288/wordpress-prepopulate-main-content-with-content-restrict-to-post-type</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 19 Apr 2011 04:51:13 UTC</pubDate>
      <guid>https://snipplr.com/view/52288/wordpress-prepopulate-main-content-with-content-restrict-to-post-type</guid>
    </item>
    <item>
      <title>(PHP) Insert Wordpress Custom Menu - adambundy</title>
      <link>https://snipplr.com/view/47735/insert-wordpress-custom-menu</link>
      <description>&lt;p&gt;'container' =&gt; ' '  --  removes the container div&lt;/p&gt;</description>
      <pubDate>Sun, 23 Jan 2011 06:05:45 UTC</pubDate>
      <guid>https://snipplr.com/view/47735/insert-wordpress-custom-menu</guid>
    </item>
    <item>
      <title>(PHP) Wordpress Self-Closing Shortcode - adambundy</title>
      <link>https://snipplr.com/view/42995/wordpress-selfclosing-shortcode</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 27 Oct 2010 05:21:20 UTC</pubDate>
      <guid>https://snipplr.com/view/42995/wordpress-selfclosing-shortcode</guid>
    </item>
    <item>
      <title>(PHP) Wordpress Custom Query - adambundy</title>
      <link>https://snipplr.com/view/40494/wordpress-custom-query</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 15 Sep 2010 04:14:18 UTC</pubDate>
      <guid>https://snipplr.com/view/40494/wordpress-custom-query</guid>
    </item>
    <item>
      <title>(PHP) Add Wordpress Widgetized Areas - adambundy</title>
      <link>https://snipplr.com/view/33426/add-wordpress-widgetized-areas</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:19:57 UTC</pubDate>
      <guid>https://snipplr.com/view/33426/add-wordpress-widgetized-areas</guid>
    </item>
  </channel>
</rss>
