WordPress.org

Plugin Directory

Posts from a Category Widget

Displays post from a selected category with post thumbnail.

Displays post from a selected category with post thumbnail.

This plugin is maintained on GitHub.

Some features:

  • Displays post from a selected category with post thumbnail on sidebar widget.
  • You can customize HTML output.
  • You can customize default HTML template in 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 me.

Contributors

Tags:

Requires: 3.4 or higher
Compatible up to: 4.2.4
Last Updated: 2015-4-27
Active Installs: 2,000+

Ratings

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