Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simplepie per default uses relative paths to generate the cache filename. Whenever I use Simplepie I run into the same problem, that the cache directory can't be located. This is why I modify the file everytime. Here's my version (with a hardcoded p...
0
966
posted 13 years ago by iroybot
Returns Wordpress categories as a hierarchical object (i.e. categories with subcategories)
0
531
posted 13 years ago by adamturtle
Used to sort array of objects by it's property
Note: Anonymous functions are available since PHP 5.3.0.
0
1167
posted 13 years ago by Rain
The admin pages listing the site’s posts and pages come with various text columns (title, tags, categories, author and so on). In order to see what the featured images are, you have to visit each post or page individually. What I will show here, is...
0
892
posted 13 years ago by i-am-andy
Add or Change Content in the Featured Image Meta Box
Posted on March 21, 2011
Perhaps you need to provide a little extra instruction about the Featured Image meta box. It doesn’t take much to add your own text to that box:
0
917
posted 13 years ago by i-am-andy
Link to the current theme / template url for use in wordpress template.
0
773
posted 13 years ago by carouselcreative
Just insert any category id into the argument and it will return the top level category object.
e.g: print_r( get_top_level_category('INSERT CATEGORY ID HERE') );
0
975
posted 13 years ago by djmosc
Checks for image files in directory and creates a XML file of the contents
0
973
posted 13 years ago by Don_Jarmo
Add current class to single posts in Wordpres wp_nav_menu by adding a filter
0
1080
posted 13 years ago by inflightatnight