Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
imagecache preset depending on height and width of the image
0
446
posted 11 years ago by hoogvlieger
so you want to have your url structure like :
yourdomain.com/post-type/286
add the following snippet to your functions.php and change the post-type names where appropriate
0
879
posted 11 years ago by nerdsane
PHP 301 redirect code for giving a page a 301 permanently moved code
0
417
posted 11 years ago by bigroadtrip
Remove meta boxes from the Wordpress admin area. Useful for simplifying Wordpress' admin interface for your clients. Add this snippet to your Wordpress theme's functions.php file.
0
494
posted 11 years ago by f6design
For our project, this code had been implemented in the theme template.php
0
632
posted 11 years ago by nicoknaepen
Create a comma separated list of a post's custom taxonomy terms.
0
1068
posted 11 years ago by f6design
interesting app: http://codecanyon.net/item/socialcounter-php-class-social-statistics/282826
0
437
posted 11 years ago by czachor
Navigating the DOM in jQuery is incredibly simple and thats to phpQuery you can do the same in php. Below are some examples of how it's used, the key change bing that instead of $() you use pq(), and instead of a . you used ->. Theres alot more detai...
0
632
posted 11 years ago by FatFolderDesigner
This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).
0
567
posted 11 years ago by bitsculptor
Show and hide content based on whether or not a user has clicked the 'Like' button of an app.
0
463
posted 11 years ago by the_construct
This will show content between this only on frontpage of the website. By default if you have blog on frontpage and goto page 2 or 3 you'll still see the content.
0
488
posted 11 years ago by Farhan