Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 53 54 55 56 57 ... 147
Can use JUri to get the page handle
0 788 posted 13 years ago by anagaiyahoocom
HTML5 replacements for the doctype, etc. for WorPress themes. Add this code to your header.php file and you site will use HTML5. Be sure to double check the rest of your theme files for validation errors.
1 684 posted 13 years ago by mindshare
Here are a couple of snippets for removing the CSS, JS, and Dashboard widget created by the WP Geo plugin. I love this plugin but often only use it as a simple way to embed geo data on posts and don't actually need it to generate maps.
0 998 posted 13 years ago by mindshare
A simple PHP function to obfuscate an email address. Usage: <?=> <?php>
1 706 posted 13 years ago by ajbatac
Place this code in your themes `functions.php` file.
0 856 posted 13 years ago by mindshare
0 868 posted 13 years ago by rahijain
0 647 posted 13 years ago by ericmuyser
This will extract page handle between last slash and .html
0 729 posted 13 years ago by anagaiyahoocom
1 754 posted 13 years ago by Risse
probably confusing. it's my first class. not pretty but it works
0 1170 posted 13 years ago by cdog
default facebook connect script
0 807 posted 13 years ago by cdog
While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian. [RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it onl...
0 789 posted 13 years ago by gryzzly
This is a php script to trigger a cpanel full backup to the servers home directory OR a remote ftp server
0 805 posted 13 years ago by leoj3n
get rid of plugins that add jquery without killing the admin
0 831 posted 13 years ago by mesh606
Dispaly a repeatable region using the Simple Fields wordpress plugin.
0 837 posted 13 years ago by mesh606
Bring in a file / image to your wp template
0 803 posted 13 years ago by mesh606
use this in the sidebar to show a top level page with child pages persistently
0 905 posted 13 years ago by mesh606
0 624 posted 13 years ago by NiReiC
CakePHP Interview Questions
0 1111 posted 13 years ago by erraja_07
**Important: this snipplet has moved to Github.** - [Programmatically change the active theme in Drupal 6](https://gist.github.com/1973197) - [Programmatically change the active theme in Drupal 7](https://gist.github.com/1973201)
2 1730 posted 13 years ago by wildpeaks
To get the simplest squeeze page possible: no header, sidebars or footer. Paste the following PHP in custom_functions.php. The first function is the filter that returns “false” instead of returning the content that would normal be there (in the h...
0 1304 posted 13 years ago by zachbrowne
0 627 posted 13 years ago by nextneed
I made this function to render hidden form elements in a new page based on what was sent from the last form. This function can be used to preserve input from a long multiple-page form. What does it do: 1. Go through all the submitted POST eleme...
0 884 posted 13 years ago by chopbust
The code references a custom post type (mysite_listings) and adds custom columns for editing the listings in the admin. This adds custom fields onto the edit / list views. Note: You will want to change instances of "mysite_listings" with your own...
1 1287 posted 13 years ago by crypticsoft
Example shows how to register post types for : * Listings (defined as 'mysite_listings' with the rewrite slug 'lookup') * Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0 1348 posted 13 years ago by crypticsoft
1 ... 53 54 55 56 57 ... 147