Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 54 55 56 57 58 ... 147
Example shows how to register post types for : * Listings (defined as 'mysite_listings' with the rewrite slug 'lookup') * Then registers the 'usa_states' taxonomy to the mysite_listings post type.
0 1536 posted 14 years ago by crypticsoft
With this CSS to make the page 2 main content columns: .custom #content .sidebar {width:48%; margin-right:2%; float:left;}
1 845 posted 14 years ago by kristarella
0 848 posted 14 years ago by nosmk
# function *formatArrayForDisplay* ## parameters: * **array** a 1- or 2-dimensional array for output * **mode** accepts **human** or **PHP** * **human** displays using `<pre>` tags and print_r * **PHP** displays PHP styl...
1 1397 posted 14 years ago by daveespionage
Ordenamento de array para exibição em colunas múltiplas, via UL float.
0 833 posted 14 years ago by dessimoni
Here are some IDs for the default links WP 3.1 adds, found in /wp-includes/admin-bar.php: my-account / my-account-with-avatar : the first link, to your account. Note that the ID here changes depending on if you have Avatars enabled or not. my-blo...
0 948 posted 14 years ago by crs
Easy but powerful.
0 798 posted 14 years ago by iamdezzy
0 1005 posted 14 years ago by zreedeecom
Advance Mail function using PHP Mailer Class
1 1044 posted 14 years ago by erraja_07
This is a really short function you can use inside The Loop to get the parent page slug (useful to add to the body classes or something)
0 3401 posted 14 years ago by tomasdev
0 1075 posted 14 years ago by zepner
The date format is dd/mm/YYYY but you can replace slashes by anything else.
0 1041 posted 14 years ago by ptiswitz
1 1161 posted 14 years ago by f6design
If a post is published without setting a featured image and there is an image attachment, this will select an image from the media library and set it as the featured image.
0 1007 posted 14 years ago by chrs
1 901 posted 14 years ago by mchadwick
a flexible function for making time periods readable
0 1147 posted 14 years ago by bitstream
Put this code in your theme, where you want to show followers count. Don't forget to change USERNAME.xml to your twitter user name.
0 1081 posted 14 years ago by kirichev
Re-indexes an array so that the array keys count up from zero. This is useful if you have previously removed some array nodes.
0 893 posted 14 years ago by f6design
Put this in your functions.php
0 1184 posted 14 years ago by kirichev
Removes 'false', '0', 'null' or '' from the array
0 1199 posted 14 years ago by f6design
I'm just trying
0 986 posted 14 years ago by iamdezzy
Most of this code is by: http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog I simply added the Tag Cloud
0 991 posted 14 years ago by daif
1 ... 54 55 56 57 58 ... 147