<?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 20:28:16 +0000</lastBuildDate>
    <item>
      <title>(PHP) Fix bbPress pagination - kristarella</title>
      <link>https://snipplr.com/view/65249/fix-bbpress-pagination</link>
      <description>&lt;p&gt;For some reason bbPress seems to use the base domain name (rather than the current forum) as the URL to which it appends /page/2 (for example) in its pagination. This seems to fix it.&lt;/p&gt;</description>
      <pubDate>Tue, 29 May 2012 19:48:28 UTC</pubDate>
      <guid>https://snipplr.com/view/65249/fix-bbpress-pagination</guid>
    </item>
    <item>
      <title>(PHP) Widgetised home page - kristarella</title>
      <link>https://snipplr.com/view/49874/widgetised-home-page</link>
      <description>&lt;p&gt;With this CSS to make the page 2 main content columns:&#13;
.custom #content .sidebar {width:48%; margin-right:2%; float:left;}&lt;/p&gt;</description>
      <pubDate>Wed, 02 Mar 2011 01:04:15 UTC</pubDate>
      <guid>https://snipplr.com/view/49874/widgetised-home-page</guid>
    </item>
    <item>
      <title>(PHP) Fallback Thesis Thumbnail - kristarella</title>
      <link>https://snipplr.com/view/38972/fallback-thesis-thumbnail</link>
      <description>&lt;p&gt;The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft to alignright, or aligncenter and you can add the class frame to give the thumbnail a border.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:43:12 UTC</pubDate>
      <guid>https://snipplr.com/view/38972/fallback-thesis-thumbnail</guid>
    </item>
    <item>
      <title>(PHP) Thesis thumbnail - kristarella</title>
      <link>https://snipplr.com/view/38971/thesis-thumbnail</link>
      <description>&lt;p&gt;Needs to be used within the loop.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:26:55 UTC</pubDate>
      <guid>https://snipplr.com/view/38971/thesis-thumbnail</guid>
    </item>
    <item>
      <title>(PHP) Add search bar to Thesis nav - kristarella</title>
      <link>https://snipplr.com/view/30098/add-search-bar-to-thesis-nav</link>
      <description>&lt;p&gt;Add the PHP to custom_functions.php and the following CSS to custom.css&#13;
&#13;
.custom ul.menu li.search {float:right;}&#13;
	.custom ul.menu li.search form {padding:0.3em;}&#13;
		.custom ul.menu li.search form input {padding:0.4em;}&lt;/p&gt;</description>
      <pubDate>Sun, 21 Mar 2010 18:41:29 UTC</pubDate>
      <guid>https://snipplr.com/view/30098/add-search-bar-to-thesis-nav</guid>
    </item>
    <item>
      <title>(PHP) Display extra posts on pages following home - kristarella</title>
      <link>https://snipplr.com/view/30097/display-extra-posts-on-pages-following-home</link>
      <description>&lt;p&gt;This is designed to show 10 posts on each of the pages after the home/blog page when the home page only shows 5  (because if you just use posts_per_page=10 without the offset you will lose the most recent posts numbered 6-10 in between the first and secon home/blog paged).&#13;
&#13;
You can tweak it to different numbers, but you'll need to change the maths (10 * ($page - 1) - 5) to suit.&lt;/p&gt;</description>
      <pubDate>Sun, 21 Mar 2010 18:28:15 UTC</pubDate>
      <guid>https://snipplr.com/view/30097/display-extra-posts-on-pages-following-home</guid>
    </item>
    <item>
      <title>(PHP) Exclude child categories from category archive - kristarella</title>
      <link>https://snipplr.com/view/16530/exclude-child-categories-from-category-archive</link>
      <description>&lt;p&gt;Completely changed original function, which stopped working around WP2.8.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Jun 2009 22:29:32 UTC</pubDate>
      <guid>https://snipplr.com/view/16530/exclude-child-categories-from-category-archive</guid>
    </item>
    <item>
      <title>(PHP) Header replacement in Thesis - kristarella</title>
      <link>https://snipplr.com/view/16133/header-replacement-in-thesis</link>
      <description>&lt;p&gt;This creates a custom HTML header in Thesis with a logo and an advert section (to be used instead of CSS image replacement).&#13;
&#13;
Example CSS to use with it:&#13;
&#13;
.custom #header:after {content:"."; display:block; height:0; clear:both; visibility:hidden;}&#13;
&#13;
.custom #header #logo {width:320px; height:90px; float:left;}&#13;
&#13;
.custom #header #header_ad {width:728px; height:90px; float:right;}&lt;/p&gt;</description>
      <pubDate>Fri, 19 Jun 2009 21:32:18 UTC</pubDate>
      <guid>https://snipplr.com/view/16133/header-replacement-in-thesis</guid>
    </item>
    <item>
      <title>(PHP) Archives listing posts by category - kristarella</title>
      <link>https://snipplr.com/view/15223/archives-listing-posts-by-category</link>
      <description>&lt;p&gt;This used to be code adapted from Z'Oc, but I decided to start again and write it fresh with WP_Query instead of get_posts.&lt;/p&gt;</description>
      <pubDate>Thu, 21 May 2009 23:55:10 UTC</pubDate>
      <guid>https://snipplr.com/view/15223/archives-listing-posts-by-category</guid>
    </item>
    <item>
      <title>(PHP) Thesis custom page template with category posts - kristarella</title>
      <link>https://snipplr.com/view/14524/thesis-custom-page-template-with-category-posts</link>
      <description>&lt;p&gt;This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.&lt;/p&gt;</description>
      <pubDate>Tue, 28 Apr 2009 03:55:49 UTC</pubDate>
      <guid>https://snipplr.com/view/14524/thesis-custom-page-template-with-category-posts</guid>
    </item>
    <item>
      <title>(PHP) Custom Thesis teasers - kristarella</title>
      <link>https://snipplr.com/view/14521/custom-thesis-teasers</link>
      <description>&lt;p&gt;This provides a teaser, with content from a custom feild, or the excerpt if no field exists. Everything except the title and edit link need to be turned off in the options.&lt;/p&gt;</description>
      <pubDate>Tue, 28 Apr 2009 02:48:21 UTC</pubDate>
      <guid>https://snipplr.com/view/14521/custom-thesis-teasers</guid>
    </item>
    <item>
      <title>(PHP) WordPress Shortcode - kristarella</title>
      <link>https://snipplr.com/view/14045/wordpress-shortcode</link>
      <description>&lt;p&gt;Use [short] in a post to insert the text from the function.&lt;/p&gt;</description>
      <pubDate>Tue, 14 Apr 2009 18:34:52 UTC</pubDate>
      <guid>https://snipplr.com/view/14045/wordpress-shortcode</guid>
    </item>
    <item>
      <title>(PHP) Target specific post on home page - kristarella</title>
      <link>https://snipplr.com/view/13596/target-specific-post-on-home-page</link>
      <description>&lt;p&gt;This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.&lt;/p&gt;</description>
      <pubDate>Mon, 30 Mar 2009 20:43:03 UTC</pubDate>
      <guid>https://snipplr.com/view/13596/target-specific-post-on-home-page</guid>
    </item>
    <item>
      <title>(PHP) Filter Thesis body classes - kristarella</title>
      <link>https://snipplr.com/view/13530/filter-thesis-body-classes</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 28 Mar 2009 08:20:29 UTC</pubDate>
      <guid>https://snipplr.com/view/13530/filter-thesis-body-classes</guid>
    </item>
    <item>
      <title>(PHP) Rearrange Thesis nav - kristarella</title>
      <link>https://snipplr.com/view/13373/rearrange-thesis-nav</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 23 Mar 2009 01:49:53 UTC</pubDate>
      <guid>https://snipplr.com/view/13373/rearrange-thesis-nav</guid>
    </item>
    <item>
      <title>(PHP) Custom bylines in Thesis - kristarella</title>
      <link>https://snipplr.com/view/13367/custom-bylines-in-thesis</link>
      <description>&lt;p&gt;This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items.&#13;
&#13;
The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look there for code on different byline items.&lt;/p&gt;</description>
      <pubDate>Sun, 22 Mar 2009 18:58:26 UTC</pubDate>
      <guid>https://snipplr.com/view/13367/custom-bylines-in-thesis</guid>
    </item>
    <item>
      <title>(PHP) Add image to post by number on page - kristarella</title>
      <link>https://snipplr.com/view/13268/add-image-to-post-by-number-on-page</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 19 Mar 2009 03:30:30 UTC</pubDate>
      <guid>https://snipplr.com/view/13268/add-image-to-post-by-number-on-page</guid>
    </item>
    <item>
      <title>(PHP) Register new sidebar for Thesis - kristarella</title>
      <link>https://snipplr.com/view/13171/register-new-sidebar-for-thesis</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 16 Mar 2009 18:05:27 UTC</pubDate>
      <guid>https://snipplr.com/view/13171/register-new-sidebar-for-thesis</guid>
    </item>
    <item>
      <title>(PHP) Nav menu for Thesis - kristarella</title>
      <link>https://snipplr.com/view/11664/nav-menu-for-thesis</link>
      <description>&lt;p&gt;An example of how to write your own navigation with dynamic "active" classes.&lt;/p&gt;</description>
      <pubDate>Fri, 30 Jan 2009 00:13:30 UTC</pubDate>
      <guid>https://snipplr.com/view/11664/nav-menu-for-thesis</guid>
    </item>
    <item>
      <title>(PHP) Create extra video box in Thesis sidebar - kristarella</title>
      <link>https://snipplr.com/view/11542/create-extra-video-box-in-thesis-sidebar</link>
      <description>&lt;p&gt;Use with (in custom.css) .sidebar_box {margin-bottom:2em; text-align:center;}&#13;
&#13;
You may have to adjust the width for your sidebars.&lt;/p&gt;</description>
      <pubDate>Mon, 26 Jan 2009 17:44:36 UTC</pubDate>
      <guid>https://snipplr.com/view/11542/create-extra-video-box-in-thesis-sidebar</guid>
    </item>
    <item>
      <title>(PHP) Add category archives to a page (in Thesis) - kristarella</title>
      <link>https://snipplr.com/view/11512/add-category-archives-to-a-page-in-thesis</link>
      <description>&lt;p&gt;The function content should work in any theme, it's just wrapped in a function wrapper for insertion into the Thesis theme.&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 19:11:17 UTC</pubDate>
      <guid>https://snipplr.com/view/11512/add-category-archives-to-a-page-in-thesis</guid>
    </item>
    <item>
      <title>(PHP) Add avatar to post title in Thesis - kristarella</title>
      <link>https://snipplr.com/view/11511/add-avatar-to-post-title-in-thesis</link>
      <description>&lt;p&gt;This CSS is nice to use with this function:&#13;
.custom .avatar {float:left; border:3px solid #ddd; margin-right:1em;}&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 19:07:53 UTC</pubDate>
      <guid>https://snipplr.com/view/11511/add-avatar-to-post-title-in-thesis</guid>
    </item>
    <item>
      <title>(PHP) Add large image to attachment page in Thesis - kristarella</title>
      <link>https://snipplr.com/view/11510/add-large-image-to-attachment-page-in-thesis</link>
      <description>&lt;p&gt;You will probably have to hide the medium sized image.&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 19:06:25 UTC</pubDate>
      <guid>https://snipplr.com/view/11510/add-large-image-to-attachment-page-in-thesis</guid>
    </item>
    <item>
      <title>(PHP) Add logo to Thesis header - kristarella</title>
      <link>https://snipplr.com/view/11508/add-logo-to-thesis-header</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 19:02:15 UTC</pubDate>
      <guid>https://snipplr.com/view/11508/add-logo-to-thesis-header</guid>
    </item>
    <item>
      <title>(PHP) Custom field usage example (in Thesis function) - kristarella</title>
      <link>https://snipplr.com/view/11507/custom-field-usage-example-in-thesis-function</link>
      <description>&lt;p&gt;This shows how to add content (in this case a linked image) to the end of a post using WordPress custom fields and the Thesis theme.&lt;/p&gt;</description>
      <pubDate>Sun, 25 Jan 2009 19:00:26 UTC</pubDate>
      <guid>https://snipplr.com/view/11507/custom-field-usage-example-in-thesis-function</guid>
    </item>
    <item>
      <title>(PHP) Limit WordPress excerpts - kristarella</title>
      <link>https://snipplr.com/view/11357/limit-wordpress-excerpts</link>
      <description>&lt;p&gt;Thanks to LenK on the WP forums.&lt;/p&gt;</description>
      <pubDate>Tue, 20 Jan 2009 19:44:31 UTC</pubDate>
      <guid>https://snipplr.com/view/11357/limit-wordpress-excerpts</guid>
    </item>
  </channel>
</rss>
