Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 96 97 98 99 100 ... 147
1 1664 posted 16 years ago by ginoplusio
Add the following code in theme's functions.php to disable auto-save and post revision completely.
0 1345 posted 16 years ago by kevinbanet
0 1309 posted 16 years ago by maryann
Now whenever you want to share an external URL, add a custom field to your post namedtitle_url and set its value as the URL of the resource.
0 1490 posted 16 years ago by maryann
0 1168 posted 16 years ago by maryann
0 1259 posted 16 years ago by maryann
Shortcode: [googlemap width="200" height="200" src="[url]"]
0 1479 posted 16 years ago by maryann
0 1118 posted 16 years ago by maryann
A utility function to preserve an array in a session. Adding the newest element to the beginning of the array and popping out the last one. Useful for displaying for instance; your last searches option in your website.
1 1994 posted 16 years ago by Heroftime
1 1612 posted 16 years ago by paulgrenwood
0 1484 posted 16 years ago by bionickid
This will outpu a numeric result array
0 2014 posted 16 years ago by karmacode
To show error in php.
0 1765 posted 16 years ago by rahijain
Searches all array elements for a given substring. Returns an array of found key=>value pairs or false if not found.
0 1532 posted 16 years ago by lancemonotone
Use the l() in Drupal with an array('html' => TRUE) to get a linked image
0 1353 posted 16 years ago by karmacode
Use the l() in Drupal with an array('html' => TRUE) to get a linked image
0 1472 posted 16 years ago by karmacode
A little function I add to the base Page_Controller class that allows you to define what actions are explicitly SSL. It will put users in SSL when they access it and take them out of it when they navigate somewhere else. It is available in any cont...
0 1060 posted 16 years ago by dalethedeveloper
0 1342 posted 16 years ago by karmacode
This is a combination of two fixes from Michael at [WPEngineer.com](http://wpengineer.com/a-solution-for-the-wordpress-gallery "WPEngineer.com"), which removes the styles from the gallery output, and a follow-up comment by [Aaron Cimolini](http://wpe...
1 1942 posted 16 years ago by lancemonotone
1 2110 posted 16 years ago by ginoplusio
Con esta funcion podemos recortar una cadena de texto indicandole cuantos caracteres queremos que tenga y ademas no cortara la ultima palabra.
0 1420 posted 16 years ago by jacinmontava
Place the following code in header.php before the call to wp_head(). (If you do not include the exact version number when calling libraries from Google's AJAX Libraries API, a redirect is used to pull up the most current version. While this is han...
3 2156 posted 16 years ago by chrisdpratt
Full example widget available at [WP Engineer](http://wpengineer.com/wordpress-built-a-widget/ "Build A WordPress 2.8 Widget With The New Widget API").
0 1570 posted 16 years ago by chrisdpratt
Simple function that sorts a bi-dimensional array by one of it keys.
1 2008 posted 16 years ago by AlejoLuc
1 ... 96 97 98 99 100 ... 147