Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Original custom fields code based on Wefunction's code here: http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/ enhanced to add support for uploading images.
1
792
posted 13 years ago by simnor
There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
1
1144
posted 13 years ago by SoN9ne
<pre><code>* Use the proper DOCTYPE.
* The opening <html> tag should include language_attributes().
* The "content-type" meta element should be placed before everything else, including the title element.
* Use bloginfo() to fetch the title and des...
2
844
posted 13 years ago by blueocto
This will remove all non-ascii characters / special characters from a string.
1
1495
posted 13 years ago by daipratt
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
594
posted 13 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
739
posted 13 years ago by iloveitaly
run this from plugins/emotions and copy/paste the output to emotions.htm
0
896
posted 13 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
760
posted 13 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0
976
posted 13 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
702
posted 13 years ago by sdxxx
Drupal 5.
Simply print <code>$uc\_cart\_shopping\_block</code> where ever you want.
0
619
posted 13 years ago by resting
Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
0
850
posted 13 years ago by iloveitaly
Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
1
843
posted 13 years ago by dtbaker
Enables you to add a custom panel in the admin post section for a custom field input
1
671
posted 13 years ago by Yahosh