Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged wordpress
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
wordpress function
return html list with all posts grouped by month
1
753
posted 16 years ago by miziomon
$quote -- name of function
post_type=page -- remove to query posts
orderby=rand -- random order
showposts=1 -- limit to 1 post
effect -- displays 1 random custom excerpt outside of the loop
1
1024
posted 16 years ago by davebowker
reference:
http://codex.wordpress.org/Template_Tags/wp_list_categories
1
777
posted 16 years ago by Ashung
Used to display the latest X number of posts from the specified category.
5
1073
posted 16 years ago by creator
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
1311
posted 16 years ago by creator
Can also be used to load scriptaculous, or any js file in WP
2
971
posted 16 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
1531
posted 16 years ago by jonhenshaw
The code for my wordpress Archives page, there have been a few people who asked how I did it.
0
1007
posted 16 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
1133
posted 17 years ago by j_junyent
taken from wordpress-- it took me a whole to find this on their site
3
1138
posted 17 years ago by melvitax
This snippet is originally from Tom Carden. All due credit goes to him.
2
1990
posted 17 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
1009
posted 17 years ago by nijgnet
Sets the sidebar photo appropriate for a section of the site by determining the parent Page of the subpage.
4
1137
posted 17 years ago by nijgnet