Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Add this snippet to the functions.php of your wordpress theme. This will add a select menu with an automatically generated list of your shortcodes for your pages and posts.
1
710
posted 12 years ago by planetabhi
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0
931
posted 12 years ago by kevincam
Just paste the following snippet into your functions.php file and save it.
0
860
posted 12 years ago by planetabhi
For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.
0
1165
posted 12 years ago by crypticsoft
This snippet will enable you to add shortcode to a wordpress custom field. Normally wordpress does not run shortcodes that you put into a custom field. Just put this code into whatever page you are displaying the results of the shortcode, and change...
0
950
posted 12 years ago by leeboyce
Here is a simple filter to automatically add a class attribute like widget-order-1 to all widgets within sidebars (from konstruktors.com)
0
1373
posted 12 years ago by lashon
Takes titles from a certain category and lists them in an unordered list.
0
768
posted 12 years ago by thewickedchemist
This code allows the upload of files with extensions usually forbidden in wordpress
0
662
posted 12 years ago by scienzedellevanghe
You can save this function in your common function file of config file, which must be included in the page which source code you want to see and simply add kode to the end of the URL and see the complete PHP code of that file on browser
0
1125
posted 12 years ago by xkeshav
For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it hap...
0
1069
posted 12 years ago by crypticsoft
Adding a file named "template-homepage.php" and adding this code inside it should essentially create a page template named "Scrolling Homepage" to your theme, which is useful in some customized landing page situations where you want another page as t...
0
622
posted 12 years ago by Makedesign
Joomla SEF to work properly it is based on Joomla menus. In your own components for SEF to work and menus to appear your need to pass the Itemid to links. To do this you need to get the Itemid based on on the URL link. Here is how you get the Itemid...
1
895
posted 12 years ago by kevincam
Capture Web Screenshots easily with the [GrabzIt ](http://grabz.it/) PHP API
You will need the free [GrabzIt Code Library](http://grabz.it/api/php/download.aspx) to get started.
2
803
posted 12 years ago by Maximus1983
You can set this as a cron to automatically clean up unsubscribes after sending out a mass email.
0
809
posted 12 years ago by squadsupply
The following shoud do it. pass the array, index is what element you want to sort on (in your case use 3). Then you can sort asc or desc, and weather you want to use natural sorting (the way a human would sort, 2 before 10) and lastly case sensitive...
0
787
posted 12 years ago by pruntrut