Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.2   Updated Tuesday, February 17th, 2009 at 6:18pm

Archives by Selected Categories Plugin for WordPress

This WordPress plugin allows you to generate a list of posts separated by category. You can choose to display all categories, or just those you select. You can also exclude categories. Under each category heading, the posts are sorted by date, with the most recent first. Additionally, the date for each post is shown next to the link. This plugin is really just a simplified version of my sitemap generator plugin, for those who just need something basic.

Download

If you have found this page useful, please consider donating. Thanks!

Change Log

  • 02-17-09 Version 1.2 - Added option to exclude categories
  • 08-24-08 Version 1.01 - Category issue fixed
  • 08-20-08 Version 1.0 - First release

Installing

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.
  • View the plugin’s options page (under Settings -> DDArchivesSelCats)

Usage

To use the plugin, simply add the following text to your post or page:

<!-- ddarchivesbycat -->

Important: Make sure you add this using the html/code editor in WordPress, not the visual editor. In new versions of WordPress, just click the ‘html’ button above the edit box. If you use the visual editor it will not work, as the actual code you entered will be seen on the page, instead of being processed by the script.

Configuration

Just enter a comma-separated list of the category IDs you would like to display the posts from. If you leave this option blank, all categories will be shown.

You can also specify a comma-separated list of category IDs you would like to exclude.

Notes

As mentioned above, this is really just an extremely basic version of my sitemap generator plugin. If you would like added functionality and more features, I recommend that you use it instead.

  1. This was exactly what I was looking for. Works beautifully for what I want. Thanks so much!

  2. How to control the number of posts to show?

  3. Version 1.2 Released

    This version adds support for a list of excluded categories. It has been tested in the latest release of WordPress (2.7.1)

  4. 9
    Charlotte

    hello there, i find this plugin very useful for my needs except for one functionality - the included category as inputted by the comma separated sequence of category ids. what i need is to input category ids to be EXCLUDED from the list display. i hope there is an easy modification to exclude categories rather than include them. help! thanks!

  5. This plugin is ideal for creating sitemaps! The other version is too complex for my understanding.

  6. Thank you for fixing it. It is now working perfectly :)

  7. Your nice little plugin saved me a bit of work. It’s just what I needed. Thanks very much for the simplified version.

  8. I found the problem, and it has been fixed. Version 1.01 is now available for download.

  9. I have the same problem as Banji at the top with the DDArchivesSelCats plug in. I have disabled the other plug ins but the problem persists. I am using wordpres 2.6.1. with neonglow 1.2 theme.

    My archive is http://www.qedlaw.co.uk/info/archive/

  10. Nice plugin. Just what I needed. Already installed and working just fine, except for one thing.

    If you have a look at my archive, In every category there will be on entries that will skip to another categories. For example,

    Category A
    - entry A1
    - entry A2
    - entry B1 (this belongs in category B)

    Category B
    - entry B2
    - entry B3
    - entry C1 (this belongs in category C)

    Category C
    - entry C2

    I’ll leave my archive with your plugin for a week or two for you to check. Appreciate if you can fix this bug. It is exactly what I’ve wanted to add to my blog. Thank you

  11. Did you already disable your other plugins to test? I have seen conflicts before.

    There are several solutions to that in the comments for that plugin. These comments are just for this plugin.

  12. You have said:
    As mentioned above, this is really just an extremely basic version of my sitemap generator plugin. If you would like added functionality and more features, I recommend that you use it instead.

    No I can’t because pagination doesn’t work. It shows on every page the same output :(

    but I love your plugin — and now it is *dead* for me …

    regards
    Monika

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.