Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 67 68 69 70 71 ... 152
0 182 posted 11 years ago by recipient
Used in Wordpress to get the post Thumbnail. Thumb url goes to $img
0 232 posted 11 years ago by RWolford
For Wordpress. Used to get the url of the post Thumbnail.
0 217 posted 11 years ago by jazzikins
0 495 posted 11 years ago by wnasich
Example from New Play Map
0 264 posted 11 years ago by mimlee
Example used in New Play Map
0 240 posted 11 years ago by mimlee
This snippet is a PHP function that checks if an email address is valid
2 410 posted 11 years ago by visudex
Useful for copyright. Keeps date current.
0 303 posted 11 years ago by bombadda
Replace 'position' with 'your-position-name'.
0 273 posted 11 years ago by bombadda
After an attempt to more a live site to a personal server for further work I ran across the problem of a mix of absolut and relative links making the local copy not work. Not wanting to manually have to change every single absolute to a relative (bec...
0 337 posted 11 years ago by FatFolderDesigner
Use Mage::register() to add an entry into registry, Mage::registry() to retrieve data and Mage::unregister() to delete registry entry.
0 252 posted 11 years ago by vrnet
Use this to grab the first image in a post
0 299 posted 11 years ago by howardpanton
Add custom logo to the login and dashboard of wordpress. More customization functions at: http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
1 271 posted 11 years ago by rliverman
Code for the wordpress functions file to add a custom post type. Full doc at: http://codex.wordpress.org/Function_Reference/register_post_type http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
0 326 posted 11 years ago by rliverman
Suppress button to "split summary at cursor" on node bodies that are generally short and won't ever be displayed as teasers. (These lines go in hook_form_alter functions.)
0 312 posted 11 years ago by tgbdad
Suppress the input format section of a node form when you don't really want users (even admin) to change it. Particularly handy for uncluttering forms with lots of CCK fields on them.
0 250 posted 11 years ago by tgbdad
Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
0 307 posted 11 years ago by ashsa
This code is usefull for getting the list of Wordpress Sites from Multisite without sending each user id.
0 501 posted 11 years ago by juanrossi
MacOS 10.6.5 PHP 5.3.3
0 234 posted 11 years ago by zuzara
Here is a little bit of code I use from time to time to make a generic some what safe date selector for forms. I wanted something easy, small, and not relying on images, jquery, libraries, etc... Most importantly I wanted the date that was selected t...
0 325 posted 11 years ago by brownrl
1 ... 67 68 69 70 71 ... 152