Plugin Directory

Single Post Widget

Display single post from url on sidebar widget.

Display single post from url on sidebar widget.

This plugin maintained on GitHub.

Some features:

  • Display single post from url 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("single-post-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("single-post-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.2 or higher
Compatible up to: 3.5.1
Last Updated: 2013-2-2
Downloads: 1,824

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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