Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 60 61 62 63 64 ... 152
0 267 posted 10 years ago by Waldio
'container' => ' ' -- removes the container div
1 347 posted 11 years ago by adambundy
0 283 posted 11 years ago by i0ni
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 389 posted 11 years ago by mattneary
0 265 posted 11 years ago by lexpresso
0 259 posted 11 years ago by anhonestboy
this code to load image from my theme images folder
0 242 posted 11 years ago by root_hacker
// example <br> $from = '2011-1-6'; <br> $to = '2011-1-8'; <br> dateDiff($from,$to); // returns 2
1 440 posted 11 years ago by klovera
0 301 posted 11 years ago by drifterz28
0 316 posted 11 years ago by danhanly
0 293 posted 11 years ago by troi
I got the answer to this question on WordPress Stack Exchange website: http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is
0 717 posted 11 years ago by racl101
Use this to get the name of the custom taxonomy. Note that this only returns the name of the first selected item, but since this returns an array, use a foreach loop to find all names.
0 404 posted 11 years ago by ToddSmithSalter
To access a protected or private property, you need to create getter and setter methods inside the class file.
0 272 posted 11 years ago by shinokada
Plugin gets child pages of parent in Wordpress. You'll need to pass the parent ID but this isn't difficult to figure out programmatically if needed, either.
0 476 posted 11 years ago by ashworthconsulting
Check if a string it's json encoded using regular expressions Thanks to Jens Anders Bakke for his mootools code published in webfreak.no http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0 550 posted 11 years ago by jatubio
0 260 posted 11 years ago by slcwebapps
0 304 posted 11 years ago by metoikos
1 ... 60 61 62 63 64 ... 152