Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 98 99 100 101 102 ... 147
create two custom fields: one called custom_css and one called custom_js.
1 724 posted 14 years ago by scitrenbaumgmailcom
I wrote this really quick and dirty script to paginate a very large chunk of text. A client site was setup with the understanding their about page would consist of 5-6 paragraphs but their biography ended up being 60 paragraphs. At the end of the d...
0 739 posted 14 years ago by aristoworks
0 807 posted 14 years ago by unravelme1
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0 964 posted 14 years ago by aristoworks
This is another way to get a list of files ordered by upload time.
1 1146 posted 14 years ago by fackz
0 577 posted 14 years ago by svenkaemper
1 658 posted 14 years ago by joet3ch
this specifically checks the view name and then checks the arg length altering the page title if its a match
1 706 posted 14 years ago by ReeceMarsland
Insert this code into your functions.php and you'll get a custom CSS box on every page and post. Be sure your theme has wp_head(); in it.
2 1838 posted 14 years ago by Kerrick
This is a tutorial I've found for integrate Facebook Connect function with your web community.
1 990 posted 14 years ago by ginoplusio
Detect if the user is browsing from and iPhone (or iPod) to server up specific content. For example, iPhone users can receive youtube video content instead of vimeo, etc.
1 837 posted 14 years ago by ericschweichler
Class has simple interface to download any file from a server without displaying the location of the file.
2 1140 posted 14 years ago by Almorca
http://twitter.com/jose_506
0 864 posted 14 years ago by jose_506
2 683 posted 14 years ago by daveonkels
This is a class/demonstration for creating dynamic properties and storing them in an array
1 666 posted 14 years ago by mpcircuitry
The first function make short urls. The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location"...
1 1631 posted 14 years ago by ginoplusio
Stick this inside the <?php> and you get the month group title shown only once for that date range. Sexy.
0 724 posted 14 years ago by daipratt
See the contents within a directory and print them out.
0 819 posted 14 years ago by chrisaiv
Handy function that allows you get some data on a file
0 785 posted 14 years ago by chrisaiv
Replace the default WordPress “W” logo in the administrative header with a custom one. Add this code inside the theme’s “functions.php” file.
0 877 posted 14 years ago by math89
Remove the “Please upgrade now” message in the Wordpress Dashboard Paste the code in your functions.php
0 681 posted 14 years ago by math89
1 ... 98 99 100 101 102 ... 147