Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This shows how to add content (in this case a linked image) to the end of a post using WordPress custom fields and the Thesis theme.
6
2541
posted 17 years ago by kristarella
So. You have some minutes and want a "human readable" version? Sure thing baby!
2
9433
posted 17 years ago by optimal
Populate your states table with US States. Easy rake task for it.
2
2223
posted 17 years ago by twofivethreetwo
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2
2809
posted 17 years ago by 1man
Usage:
formatDecimals(3.1415926, 3);
returns: 3.141.
Also adds zeros to end if needed.
0
1575
posted 17 years ago by Mijos
I was having the hardest time getting this to work. It's a collection of various items. For whatever reason, I needed to include the CASE statement due to NULL's coming back. If this helps you out... go for it.
0
1875
posted 17 years ago by gembry
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1
2381
posted 17 years ago by luizlopes
In this case I'm looking for image sources in html and placing them in array.
1
2367
posted 17 years ago by leonbda