Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged category
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1
1205
posted 16 years ago by rocktronica
If you leave out the "paged" parameter, the same results are queried and shown on each pagination. Of course, you'll want to change the "3" to whichever category you'll want to exclude.
3
1172
posted 16 years ago by rocktronica
Used to display the latest X number of posts from the specified category.
5
1136
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
1394
posted 16 years ago by creator
This is an example of how to use the articleHandler.class.php , this class can be found @ pietervp.com -> downloads
1
967
posted 18 years ago by pietervp