Welcome To Snipplr


Everyone's Recent Snippets Tagged post



0 998 posted 14 years ago by jli
This will find the first image in post and return it as a thumbnail if it exists
0 1717 posted 14 years ago by howardpanton
This function return a string with all the post parameters and their values.
1 3119 posted 15 years ago by sikwan
Code in functions.php einfügen
0 1145 posted 15 years ago by PM-Webdesign
This function can be used to sanitize single string variable or massive like POST, GET, COOKIE. It performs magic quotes gpc check, strip tags, trim and escape the dangerous signs with mysql_real_escape_string.
0 1263 posted 15 years ago by stz184
0 880 posted 15 years ago by incompany
0 1141 posted 15 years ago by Mat_
0 1235 posted 15 years ago by adampatterson
This will fetch the custom post types, displayed as a list with their respective permalinks.
0 1379 posted 15 years ago by ivorpad
By default wordpress does not include post thumbnails in RSS Feeds. Enable in by add this code the functions.php located inside your themes folder.
1 1720 posted 15 years ago by mediamilan
Returns the number of published posts in the given category.
0 1399 posted 15 years ago by mihael
This function returns the slug fot the given post...
0 1392 posted 15 years ago by mihael
1 1246 posted 15 years ago by genseric
I looked everywhere trying to find some code that could show me how to display the post thumbnail if there is an image, but to display absolutely nothing if there isn't an image to display (most just either added an image or there was a broken image...
1 4567 posted 15 years ago by bdnnikki
A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D
0 997 posted 15 years ago by psdesignuk
0 1111 posted 15 years ago by gd6d
To use it, simply create a new folder called “art-direction” in your theme. Then to style any particular Post or Page, just drop a file in that folder named style-XXXX.css where XXXX is the ID of the Post or Page. When that Post or Page loads, Wo...
0 1143 posted 15 years ago by gd6d
Is also generates the .wp-post-image class for us to style
0 1201 posted 15 years ago by crs
Paste this into your AS file to add focus and blur events to your text/form fields. If your field contains YOUR DEFAULT MESSAGE when focus is brought to it, it will erase itself, to be ready for text entry. If focus is lost while the field is complet...
0 1393 posted 15 years ago by Winkyboy
The source below is the function from the website with the corrected regular expression found in the site's comments. This is a nigh-one-line function for validating a string as an email address.
4 1892 posted 15 years ago by Winkyboy
0 1177 posted 16 years ago by gabbo