Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This post will show you how to make your theme generate thumbnails automatically, based on your post’s first image. Uses timthumb to resize
0
669
posted 12 years ago by dnnsldr
Replace standard query_posts with the snippet to enable pagination on pages with a custom loop. Be sure to change out "somecat" with your category or add additional query arguments.
0
484
posted 12 years ago by rickfu
the POSIX Regex functions are deprecated in PHP 5.3.0 and removed in PHP 6.
http://us2.php.net/manual/en/function.eregi-replace.php
0
703
posted 12 years ago by dubogii
this creates a function inside a widget object to create a dropdown menu with all the custom post types created in wordpress functions.
0
685
posted 12 years ago by hugosolar
As simple as it can be. An PHP minifier. All the credits go to his author, Kit MacAllister
0
607
posted 12 years ago by thefricky
When creating a WordPress based website for a client, you may need to make sure that he can’t switch themes. This is what I’m going to show you in today’s recipe.
0
580
posted 12 years ago by jamiebrwr
This snippet will help you to use the mother category, the ones with parent => 0, as your classes ready to be stylezed in your CSS!
0
709
posted 12 years ago by Pr0v4
1) name the file something like "template-pods-export.php"
2) create a new Pods Page & choose the newly created template
3) goto your worpress URL/export
4) enter filename.csv & pod name you want to export.
5) Submit.
6) Away Laughing
0
1348
posted 12 years ago by stewartduffy