WordPress.org

Ready to get started?Download WordPress

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

Tags:

Requires: 3.4 or higher
Compatible up to: 3.5.2
Last Updated: 2012-12-2
Downloads: 7,643

Ratings

5 stars
5 out of 5 stars

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
100,2,2