Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example of loading thickbox and syntaxhighlighter conditionally from the functions.php of a wordpress theme.
2
1270
posted 15 years ago by zac
I needed a way to generate some random strings for passwords, a number of methods seemed a little over the top so below is my simplified version that does the trick. I have set it to use non-confusing characters, so no i's, l's, 0's but very easy to...
0
1533
posted 15 years ago by motlive
returns "City, State" if found otherwise defaults to "Hollywood, CA"
18
14079
posted 15 years ago by crypticsoft
Modify the array to get different number of posts, change the order, change / add categories etc.
1
1554
posted 15 years ago by amyb
this is pretty useful if you want to use the wordpress blog system to feed a custom application/site of yours
0
1338
posted 15 years ago by louisdedecker
## Benefit
To notify visitors that the current post they are viewing is an old post. Suitable for Blog / Website that provide timely articles
0
1560
posted 15 years ago by firewalker06
Inserts WordPress shortcode outside the loop in a template
1
1311
posted 15 years ago by primitiveshaun
Needed this to have the index.php or main blog page show the full content for the first two posts and then just the excerpt for the rest and still have pagination working.
2
1527
posted 15 years ago by rliverman