Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 19 20 21 22 23 ... 147
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 715 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 934 posted 12 years ago by kevincam
Just paste the following snippet into your functions.php file and save it.
0 863 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 1168 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 958 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 1375 posted 12 years ago by lashon
Takes titles from a certain category and lists them in an unordered list.
0 771 posted 12 years ago by thewickedchemist
This code allows the upload of files with extensions usually forbidden in wordpress
0 668 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 1131 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 1070 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 624 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 900 posted 12 years ago by kevincam
Random color hex
0 910 posted 12 years ago by pruntrut
Remove specific words from a string
0 990 posted 12 years ago by pruntrut
Converts phone numbers to the formatting standard
1 807 posted 12 years ago by pruntrut
Debugging a quote in magento, get all it's data.
1 847 posted 12 years ago by cpres
Change string first letter to uppercase
0 830 posted 12 years ago by pruntrut
Remove/unset native meta boxes
0 593 posted 12 years ago by lolitaloco
List all files in a diretory with glob
0 1002 posted 12 years ago by pruntrut
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 809 posted 12 years ago by Maximus1983
Connect to and query a db2 database using php.
0 838 posted 12 years ago by zombree
test create new snippet
0 1081 posted 12 years ago by bindirtit
You can set this as a cron to automatically clean up unsubscribes after sending out a mass email.
0 812 posted 12 years ago by squadsupply
Using array_map() on multidimensional arrays
0 1342 posted 12 years ago by pruntrut
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
1 ... 19 20 21 22 23 ... 147