Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged wordpress



For use on a single page... Only displays the content if the displayed post is in the specified category. You can use the category slug or the category ID if you know it.
6 923 posted 15 years ago by creator
Can also be used to load scriptaculous, or any js file in WP
2 641 posted 15 years ago by davebowker
This is a simple but powerful tweak to the wp-config.php file that will make it easy to run multiple websites using one database and codebase. Simply change "yourdomain.com" with your domain and that's it. Repeat that line for new domains.
2 1015 posted 15 years ago by jonhenshaw
uri: http://organic.qualitywordpress.com/
0 511 posted 15 years ago by ChaosKaizer
The code for my wordpress Archives page, there have been a few people who asked how I did it.
0 669 posted 15 years ago by kristin
I was looking for a way to post new articles remotely, and cross domain. I only needed to post new articles, not read, edit or anything like that, so I did not need a whole GUI or any other Interface like those WP-Desktop-clients. I wrote this script...
0 756 posted 15 years ago by j_junyent
the above url has some helpful parameters
1 616 posted 16 years ago by cori
taken from wordpress-- it took me a whole to find this on their site
3 731 posted 16 years ago by melvitax
This snippet is originally from Tom Carden. All due credit goes to him.
2 573 posted 16 years ago by Wiederkehr
Inserts "first" and "last" classes to the first and last items respectively. "first" and "last" classes defined in CSS as without padding.
2 636 posted 16 years ago by nijgnet
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
4 787 posted 16 years ago by nijgnet
blacnk stylesheet for the Sandbox WordPress theme
1 649 posted 16 years ago by j_junyent
Show a user picture in wordpress
0 650 posted 16 years ago by j_junyent
0 608 posted 16 years ago by eethann
3 1096 posted 16 years ago by llbbl
put "register_sidebar_widget(..)" into "function widgets_init()"
4 813 posted 17 years ago by yuconner