Plugin Directory

Posts from a Category Widget

Display post from a selected category with post thumbnail.

Display post from a selected category with post thumbnail.

This plugin maintained on GitHub.

Some features:

  • Display post from a selected category with post thumbnail on sidebar widget.
  • You can customize HTML output.
  • You can customize default HTML template on your plugin.

filter hooks example

Filter for default template.

<?php
    add_filter("posts-in-category-widget-template", "my_template");
    function my_template($template) {
        return '<div class="%class%"><a href="%post_url%">%post_thumb%</a></div>';
    }
?>

Filter for stylesheet URI.

<?php
    add_filter("posts-in-category-widget-stylesheet", "my_style");
    function my_style($url) {
        return 'http://example.com/path/to/style.css';
    }
?>

Translators

Please contact to me.

Contributors

Requires: 3.2 or higher
Compatible up to: 3.3.2
Last Updated: 2012-4-3
Downloads: 2,780

Average Rating

5 stars
(2 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1