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
794
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
1146
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
847
posted 13 years ago by blueocto
This will remove all non-ascii characters / special characters from a string.
1
1498
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
598
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
741
posted 13 years ago by iloveitaly
run this from plugins/emotions and copy/paste the output to emotions.htm
0
899
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
978
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
625
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
846
posted 13 years ago by dtbaker
Enables you to add a custom panel in the admin post section for a custom field input
1
678
posted 13 years ago by Yahosh