BACK TO DIRECTORY

Posts from a Category Widget

by Takayuki Miyauchi

5.0
(4 ratings)

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.

  • @miya0001 on twitter.
  • http://wpist.me/ (en)
  • http://firegoby.jp/ (ja)
  • https://github.com/miya0001/posts-in-category-widget

Contributors

Credits

This plugin is not guaranteed though the user of WordPress can freely use this plugin free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plugin use are not done at all beforehand.

Contact

twitter @miya0001

Plugin Details

Active Installs
300
Total Downloads
18,841
Version
1.2.0
Requires WP
3.4
Requires PHP
Tested Up To
4.4.34
Added
2011-10-04
Last Updated
2016-01-03 7:27am GMT

Ratings

5
4
4
0
3
0
2
0
1
0

Tags