Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 59 60 61 62 63 ... 147
This help you cutting text without cut the last word. Any feedback appreciated!
0 455 posted 13 years ago by alesma
his code will show the child pages, and only the child pages, when on a parent or on one of the children. This code will not work if placed after a widget block in the sidebar.
1 659 posted 13 years ago by raz
List WordPress subpages and include parent
0 578 posted 13 years ago by raz
6 708 posted 13 years ago by Roaa
Render the contents for a single node field.
0 451 posted 13 years ago by jonathanpglick
This code comes from the php documentation (see url)
0 550 posted 13 years ago by jli
track click and get aff/campaign info
0 412 posted 13 years ago by jurajsim
0 437 posted 13 years ago by Waldio
'container' => ' ' -- removes the container div
1 668 posted 13 years ago by adambundy
0 524 posted 13 years ago by i0ni
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 628 posted 13 years ago by mattneary
0 461 posted 13 years ago by lexpresso
0 408 posted 13 years ago by anhonestboy
this code to load image from my theme images folder
0 443 posted 13 years ago by root_hacker
// example <br> $from = '2011-1-6'; <br> $to = '2011-1-8'; <br> dateDiff($from,$to); // returns 2
1 731 posted 13 years ago by klovera
0 558 posted 13 years ago by drifterz28
0 554 posted 13 years ago by danhanly
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 1142 posted 13 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 785 posted 13 years ago by ToddSmithSalter
To access a protected or private property, you need to create getter and setter methods inside the class file.
0 458 posted 13 years ago by shinokada
1 ... 59 60 61 62 63 ... 147