Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Custom sorting for events based on a custom field
needs to be added to navigation-links.php
requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
0
923
posted 13 years ago by hussong
I'm using this out of laziness.
PHP is slowing things down here, since it's not as close to C as XPath.
A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
0
812
posted 13 years ago by iroybot
A simple one page form with attachment that is meant to go straight to the email and not uploaded to the server. Emails an HTML version, a PlainText version and the attachment if there is one.
4
1263
posted 13 years ago by StevenW721
This help you cutting text without cut the last word. Any feedback appreciated!
0
645
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
842
posted 13 years ago by raz
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0
786
posted 13 years ago by mattneary
// example <br>
$from = '2011-1-6'; <br>
$to = '2011-1-8'; <br>
dateDiff($from,$to); // returns 2
1
924
posted 13 years ago by klovera