Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 79 80 81 82 83 ... 147
Loads WordPress header for external functions like get_option();
0 949 posted 14 years ago by vagrantradio
0 797 posted 14 years ago by mjsiemer
For example, when you can't get the post author to shop up using the_author(); it usually means your working outside the loop while that function is meant to work inside the loop. This is a way around it. (got it from the forums)
0 619 posted 14 years ago by Rembrand
0 687 posted 14 years ago by fatihturan
passing php variables to javascript with build-in function 'wp_localize_script'.
1 976 posted 14 years ago by screamwork
Quick and easy way to determine if the HTTP request is an AJAX call or a standard call. Supports the notion of Unobtrusive JavaScript.
3 1347 posted 14 years ago by joshuascott94
Wordpress - 404 problem on physical directories. From the Support Forum.
0 719 posted 14 years ago by kyuumeitai
This will fetch the custom post types, displayed as a list with their respective permalinks.
0 1034 posted 14 years ago by ivorpad
Useful snippets for php developers.
0 897 posted 14 years ago by jamepaul
make pagination for dataview in model
2 746 posted 14 years ago by nazir
0 841 posted 14 years ago by indra
Pulling posts from outside wordpress (in the right way!) as a response for this snippet: http://snipplr.com/view/39523/pulling--posts-from-outside-wordpress/
0 1453 posted 14 years ago by bronet
Not is mine, I found it online, I just found it and modified it\r\n\r\nI do not remember where I took if anyone knows the original URL I will include it
2 956 posted 14 years ago by elalecs
Returns an HTML string of taxonomy terms associated with a post and given taxonomy. Terms are linked to their respective term listing pages.\r\n\r\nThis is for when a custom taxonomy is registered for a custom post type.
2 1231 posted 14 years ago by Jamie
0 869 posted 14 years ago by dmistriotis
Use this to remove or change the wp-admin footer text. Default is Thank you for creating with WordPress.
1 873 posted 14 years ago by Farhan
By Philkav for reddit [r/mw2]
0 742 posted 14 years ago by philkav
All code should ideally go into your theme\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s template.php file. I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ve used the default Garland theme here as an example.
0 912 posted 14 years ago by hiddentao
3 1057 posted 14 years ago by damanlovett
Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')
0 1029 posted 14 years ago by jmiller
Pass in object. Returns array.
0 957 posted 14 years ago by jmiller
0 828 posted 14 years ago by robksawyer
1 ... 79 80 81 82 83 ... 147