Welcome To Snipplr
Everyone's Recent 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
556
posted 13 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
569
posted 13 years ago by rocktronica
An example of utilizing a category in Groovy in order to create withIndexfunctionality on lists each methods (traversing the list and having the index on each step), @ http://markmail.org/message/pa2irg4mvydpxi7c
0
495
posted 14 years ago by narkisr
Used to display the latest X number of posts from the specified category.
5
540
posted 14 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
702
posted 14 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
452
posted 16 years ago by pietervp