Profile
Achievement
krike's Recent Snippets
- All /
« Prev 1 Next »
A function to upload an image to the media library and set it as featured image of a post. It requires 2 params. The name of the upload field and of course the post ID.
This function is part of the WPelements library class available on Github. Fee...
0
1208
posted 12 years ago by krike
A usefull function to minify code or string. This is part of the WPelements library class available on Github.
Feedback / suggestions / improvements are welcome.
0
742
posted 12 years ago by krike
A custom breadcrumb function for WordPress that I created for a client.
You can pass 2 arguments, the first being the text you want to display in front of the breadcrumb and the second is to hide the home item in the breadcrumb
It will give eac...
1
768
posted 13 years ago by krike
This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!)
Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be ins...
0
717
posted 14 years ago by krike