Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 64 65 66 67 68 ... 152
0 271 posted 10 years ago by ischenkodv
Add two new shortcodes to create Shopp product/category links in an easy way. **USAGE:** The following shortcodes will now be available along your posts, pages and text widgets [productlink id='' text=''] (Text is optional, if omitted the p...
0 247 posted 10 years ago by zreedeecom
I'm not well versed in international address formatting, but this seems to work for most cases. Critiques are welcome!
0 307 posted 10 years ago by iloveitaly
run this from plugins/emotions and copy/paste the output to emotions.htm
0 408 posted 10 years ago by hamsterbacke82
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0 330 posted 10 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0 388 posted 10 years ago by vagrantradio
Posts with thumbs by category
2 347 posted 10 years ago by vagrantradio
Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"] And instead of manually creating the HTML yourself, you wanted to use YouTube’s oEmbed provider to get the HTML. While that’s easy to do using WordPress’ existing fun...
3 282 posted 10 years ago by sdxxx
Drupal 5. Simply print <code>$uc\_cart\_shopping\_block</code> where ever you want.
0 256 posted 10 years ago by resting
0 363 posted 10 years ago by lajlev
Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
0 364 posted 10 years ago by iloveitaly
Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
1 329 posted 10 years ago by dtbaker
1 300 posted 10 years ago by kijtra
Enables you to add a custom panel in the admin post section for a custom field input
1 288 posted 10 years ago by Yahosh
just copied-pasted it so that it can also reside on Sniplr
0 270 posted 10 years ago by dmistriotis
This method is easy to write, but not very efficient, as you can imagine.
2 611 posted 10 years ago by dyteq
Easiest way to switch theme styles for WordPress demos.
1 372 posted 10 years ago by vagrantradio
0 347 posted 10 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 218 posted 10 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 515 posted 10 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 395 posted 10 years ago by vagrantradio
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 344 posted 10 years ago by lawlesscreation
1 ... 64 65 66 67 68 ... 152