Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 23 24 25 26 27 ... 147
imagecache preset depending on height and width of the image
0 1491 posted 13 years ago by hoogvlieger
Force downloadable file with php
0 2371 posted 13 years ago by rickygri
Add this snippet to template.php
0 1445 posted 13 years ago by mktimes5
use an object as an array
0 2621 posted 13 years ago by prwhitehead
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 3265 posted 13 years ago by nerdsane
PHP 301 redirect code for giving a page a 301 permanently moved code
0 1251 posted 13 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 1538 posted 13 years ago by f6design
For our project, this code had been implemented in the theme template.php
0 1671 posted 13 years ago by nicoknaepen
Create a comma separated list of a post's custom taxonomy terms.
0 2466 posted 13 years ago by f6design
Requires filter added in ECP 2.1
2 1500 posted 13 years ago by nciske
interesting app: http://codecanyon.net/item/socialcounter-php-class-social-statistics/282826
0 1335 posted 13 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 1750 posted 13 years ago by FatFolderDesigner
0 1092 posted 13 years ago by shufflepath
Php check for the top of the hour
0 1323 posted 13 years ago by poot26
This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).
0 1603 posted 13 years ago by bitsculptor
Show and hide content based on whether or not a user has clicked the 'Like' button of an app.
0 1396 posted 13 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 1366 posted 13 years ago by Farhan
0 1511 posted 13 years ago by pruntrut
0 1299 posted 13 years ago by pruntrut
0 1388 posted 13 years ago by pruntrut
0 1199 posted 13 years ago by pruntrut
0 1434 posted 13 years ago by pruntrut
0 1250 posted 13 years ago by pruntrut
0 1144 posted 13 years ago by pruntrut
0 1146 posted 13 years ago by pruntrut
Magento getting stock status of a product
1 1566 posted 13 years ago by duzenz
this snippet of code is getting the qty of product in magento
1 1485 posted 13 years ago by duzenz
This is a function that receives a string as an argument (along with other config optional arguments) and locates all keywords (words that appear most) from that string, returning the keywords as an array or as a string separated by commas. The funct...
2 5374 posted 14 years ago by TimoZachi
Insert inside the loop
0 1212 posted 14 years ago by jwaldeck
1 ... 23 24 25 26 27 ... 147