Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Add this snippet to the functions.php to render your twitter followers count.
Replace 'planetabhi' with your twitter screen name
0
1102
posted 12 years ago by planetabhi
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
815
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
1050
posted 12 years ago by kevincam
Just paste the following snippet into your functions.php file and save it.
0
964
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
1310
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
1072
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
1501
posted 12 years ago by lashon
Takes titles from a certain category and lists them in an unordered list.
0
869
posted 12 years ago by thewickedchemist
This code allows the upload of files with extensions usually forbidden in wordpress
0
769
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
1237
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
1204
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
708
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
1005
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
917
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
910
posted 12 years ago by squadsupply