Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 63 64 65 66 67 ... 147
Enables you to add a custom panel in the admin post section for a custom field input
1 1234 posted 15 years ago by Yahosh
just copied-pasted it so that it can also reside on Sniplr
0 2252 posted 15 years ago by dmistriotis
This method is easy to write, but not very efficient, as you can imagine.
2 2615 posted 15 years ago by dyteq
Easiest way to switch theme styles for WordPress demos.
1 1592 posted 15 years ago by vagrantradio
0 1569 posted 15 years ago by rccc
Use this function if you need to get the same day in the next month (or how many you need). Using defaults functions of php you got this: echo date('Y-m-d', strtotime( " + 1 month " , strtotime('2010-01-31'))); (Output: '2010-03-03') and if yo...
0 1248 posted 15 years ago by vitorbari
Summary ======= A useful function for masking arrays. Very useful if you have a function or method that takes arguments in an array, and you would like to force that array to have a specific structure. Its also great for setting defaults due to...
0 1974 posted 15 years ago by RobertWHurst
Very useful line of code that I'm using very often to prevent old and cached CSS file being served to visitors. You just need to use timestamp of the file.
0 1874 posted 15 years ago by vagrantradio
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 1426 posted 15 years ago by lawlesscreation
To enable error reporting for *ALL* error messages including every error level (including E_STRICT, E_NOTICE etc.), simply use:
1 1001 posted 15 years ago by Hepamin
Very usefull translation adapter for simple interfaces where creating translation files is just a bit to much.
1 1222 posted 15 years ago by RonXS
Use this to fix Pagination Problem on query posts page. This will fix the problem where clicking on the next page keeps showing same posts
1 1387 posted 15 years ago by Farhan
3 2082 posted 15 years ago by alyssonweb
Nice and short
0 1300 posted 15 years ago by Blerx
Takes the ID of a page, then displays a list of child pages with thumbnails and page titles. The thumbnail is generated from the 'featured image' of the particular child page.
2 1615 posted 15 years ago by martinlucas
0 1665 posted 15 years ago by rliverman
0 1321 posted 15 years ago by rliverman
2 1316 posted 15 years ago by mb2o
This snippet saves in the $return array all the names of the fields that a content type has added with CCK, has to be installed the cck module.
0 2554 posted 15 years ago by JohnnyGamba
1 ... 63 64 65 66 67 ... 147