Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 39 40 41 42 43 ... 147
0 508 posted 12 years ago by rahijain
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 504 posted 12 years ago by dan_hoerr
Ensures the admin scripts or styles will load only on your wordpress plugin settings page: - add_options_page returns a hook_suffix for the settings page of your plugin. - append this value prefixed with a dash (-) to the end of the action you ar...
0 601 posted 12 years ago by relish
Replace non alpha-numeric characters with PHP
0 537 posted 12 years ago by plesh
Loops through ASCII characters to display alphabet, useful for alphabetic filtering links. eg: A | B | C | D ...
0 718 posted 12 years ago by plesh
A really handy snippet that will replace textual URLs with HTML links. Also works for email addresses.
0 1314 posted 12 years ago by plesh
0 555 posted 12 years ago by jacksaidwhat
0 573 posted 12 years ago by retsub79
Use in the WP loop. User's registered email account on WP must also be assigned to Gravatar.
0 533 posted 12 years ago by jacksaidwhat
0 444 posted 12 years ago by ahdriel
If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
0 570 posted 12 years ago by tcam27
1. Open lib/zend/locale/data/en.xml 2. Locate territories tag in this file 3. copy one of territory tags for the syntax and paste it within the territories tag 4. hard part here is to add country code in this file as might not be able to fin...
0 800 posted 12 years ago by JustMadMike
Convert a string to friendly string.
0 550 posted 12 years ago by alyssonweb
Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
0 626 posted 12 years ago by FatFolderDesigner
<?php> <!–Default> <?php> Note that sidebar.php must not always content the sidebar
0 502 posted 12 years ago by xavsio4
in the theme's footer.php insert <?php>
0 491 posted 12 years ago by xavsio4
0 585 posted 12 years ago by xavsio4
Can also be done in your pre built theme
0 545 posted 12 years ago by xavsio4
Simply paste the code below and insert your Google Analytics where it says paste your Google Analytics. You can paste the code once in your functions.php file and never have to worry about it again. We are adding an action to the wp_footer, so it wil...
0 607 posted 12 years ago by xavsio4
0 511 posted 12 years ago by xavsio4
The Logo settings start on line 110 of the commented version.
0 629 posted 12 years ago by jeremyjared74
If you want to export some utf-8 data into csv/tsv that will be readable by excel with correct encoding you must add special non vissable characters at the begining of file
1 1868 posted 12 years ago by dsoms
I can't access the global $paged variable.
0 304 posted 12 years ago by DanielApt
1 ... 39 40 41 42 43 ... 147