CatTagArt

Category Tag Article list (CatTagArt) is a WordPress plugin that returns a list of the latest articles for a given category or tag. All you have to do is tell CatTagArt how many articles you’d like to return for each category or tag. Call CatTagArt in any post or page by simply sending it the slug of the category or tag. Click to download CatTagArt.

Example

To get a list of the most recent articles on this site about “Cool Sites”, I simply type the code [cattagart cool-sites] into the page editor.

That’s it. Notice the number of articles is limited to 6, just as I specified in my settings, and I’ve chosen the phrase “even more” to link to the category “Cool Sites”.

Installation

Unzip the download file and upload the category-tag-article-list.php file (it’s the only file there) to your WordPress plugins directory. Activate the CatTagArt plugin, and decide on your settings.

Options

The settings for CatTagArt are pretty straightforward and can be accessed under the “Settings” tab of your WordPress dashboard

Number of posts to list–the number of most recent posts to list when the plugin is used

Auto-generate headings–either let CatTagArt generate the heading based on the label corresponding to the slug or provide it yourself.

Create a link for “more” articles in a category or tag–this is an extra item added to the list that links to the category or tag you’ve referenced with the slug.

Specify text for more articles–change the text for the setting above.

7 Comments so far
  1. sadcox April 24, 2008 3:58 pm

    Thanks to those who’ve found the bugs in this so far. Version 1.1 is up now and take of everything that’s been found so far. Please let me know of other ways to improve. Here are some features I’m working on for the next version…

    1) Template tags
    2) Override settings with the plugin call
    3) Ability to list either pages or posts, or both

  2. [...] choose selectively which categories you want to display on a post or page, look no further than CatTagArt. Once installed and activated you’ll be able to configure options such as how many posts [...]

  3. Schulte May 7, 2008 3:19 pm

    Was giving this a whirl and I noticed that you’re making the call, get_permalink($post->id) but not SELECTing it in your SQL statement.

    $cattag_sql = “select wpp.id…

    Messes things up a bit. Fix it and you’re golden again.

  4. karinne May 29, 2008 3:04 am

    is there a way to call this from the code? like ??

  5. sadcox May 29, 2008 3:10 am

    Sorry Karinne…the current version doesn’t have this functionality. I hope I can finish the template tags and setting overrides next week.

  6. Jeff Scott May 30, 2008 8:13 pm

    I noticed that your code doesn’t take into account the possibility of non-default table prefixes for the WP tables.

    Just change all of the table references in the queries from wp_* to $wpdb->* and it will work with any prefix.

    Thanks and Cheers!

  7. Doug Winship June 4, 2008 5:34 pm

    Great plugin! Thanks.
    I would love it if you made it possible to reverse the order of posts, from oldest to newest….

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 Openside Solutions, - PassionDuo WordPress Theme