BACK TO DIRECTORY

Category Shortcode

by robertdrake

4.0
(2 ratings)

This plugin creates the [Category]] Shortcode. The code takes 5 arguments:

number: the number of posts to display. 0 equals the default number. -1 equals the total available.

Order: Ascending or Descending

Display Method: Full, Excerpt, Title

Order By: Author, Date, Title, Modified, Parent, ID, Rand, None, or Comment Count.

Category: this is the category id the category or categories that should be searched. Multiple categories can be specified in a comma separated list.

Example shortcode:

[Category number=’5′ method=’title’ order=’asc’ id=’11,45′ orderby=’comment_count’]

This will show 5 posts in ascending order of category 11 and 45 as arranged by comment_count and will display just the post titles.

Acknowledgements

A big thank you to g33kg0dd3ss for figuring out the 1.3 fix issue with the loop being broken. She contributed the patch fix.

Future Additions?

  1. Let plugin form allow for multiple category selections

  2. Let plugin form allow for multiple orderby methods

  3. In admin form restrict Number of posts to numbers only.

  4. In admin form setup a copy and paste script

  5. Accept a category name as a valid input

  6. Internationalization of the plugin

  7. Improve Formatting of Posts / Make formatting easier to edit./ Give user more control over formatting

  8. Allow attachments to come through

  9. Turn title links on or off.

  10. Allow comments in output

  11. Give user more control over the postformatting

  12. Add ability to modify thumbnail options through shortcode

Plugin Details

Active Installs
300
Total Downloads
16,081
Version
1.3
Requires WP
2.9.0
Requires PHP
Tested Up To
3.0.5
Added
2010-03-03
Last Updated
2010-10-15 12:54pm GMT

Ratings

5
0
4
2
3
0
2
0
1
0