Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If you've ever tried to subscribe to a podcast outside of iTunes but only have an iTunes URL, you know how frustrating it is. Turns out that you just need to spoof yourself as an iTunes client to see the direct feed URL. This script helps with exactl...
1
1758
posted 13 years ago by lasavior
I needed a simple function to shorten a link with goo.gl and wrote this, thought it may help someone. Note: you still need an API key from goo.gl
1
1890
posted 13 years ago by lasavior
getCategory returns the category ID, getSection returns the section alias. Great for CSS overrides
0
1034
posted 13 years ago by beneberle
function for determining the section ID of a given page. Good to include in a templatetools.php file inside of a template to set up some custom conditional logic
0
978
posted 13 years ago by beneberle
Another version for my old Order by Rand function now it includes some PHP
0
742
posted 13 years ago by aamirrajpoot
Returns the video id for any type of youtube url that holds one.
2
1388
posted 13 years ago by KabuqueJoe
post thumbnail function and display as background if function exists
0
894
posted 13 years ago by zealmurapa
Returns all of the custom fields (meta data) from a page / post and assigns them all to a single session array for compactness
1
942
posted 14 years ago by prwhitehead
Cache the results of your wordpress database queries for faster page generation
0
1116
posted 14 years ago by prwhitehead
Dynamically get the guid of your a post from its post title (with wordpress caching)
0
918
posted 14 years ago by prwhitehead