Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 48 49 50 51 52 ... 147
Pagination function
0 689 posted 13 years ago by zealmurapa
if is home if is page if is single else if
0 659 posted 13 years ago by zealmurapa
Query any Post Type anywhere
0 600 posted 13 years ago by zealmurapa
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 1508 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 1719 posted 13 years ago by lasavior
getCategory returns the category ID, getSection returns the section alias. Great for CSS overrides
0 881 posted 13 years ago by beneberle
0 747 posted 13 years ago by serialk89
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 792 posted 13 years ago by beneberle
Another version for my old Order by Rand function now it includes some PHP
0 595 posted 13 years ago by aamirrajpoot
0 593 posted 13 years ago by zealmurapa
Call Taxonomy anywhere on a template (without link)
0 792 posted 13 years ago by zealmurapa
Returns the video id for any type of youtube url that holds one.
2 1208 posted 13 years ago by KabuqueJoe
0 798 posted 13 years ago by zealmurapa
0 559 posted 13 years ago by zealmurapa
strip html on loop
0 625 posted 13 years ago by zealmurapa
0 1040 posted 13 years ago by zealmurapa
post thumbnail function and display as background if function exists
0 722 posted 13 years ago by zealmurapa
0 897 posted 13 years ago by pacifists
Returns all of the custom fields (meta data) from a page / post and assigns them all to a single session array for compactness
1 789 posted 13 years ago by prwhitehead
Cache the results of your wordpress database queries for faster page generation
0 933 posted 13 years ago by prwhitehead
Dynamically get the guid of your a post from its post title (with wordpress caching)
0 745 posted 13 years ago by prwhitehead
Make sure your URL $_GET variables don't get repeated / duplicated when you are creating links / URLs dynamically.
0 683 posted 13 years ago by prwhitehead
1 ... 48 49 50 51 52 ... 147