Single Post Widget

plugin banner

Display single post from url on sidebar widget.

Author:Takayuki Miyauchi (profile at wordpress.org)
WordPress version required:3.2
WordPress version tested:3.5.1
Plugin version:0.4.0
Added to WordPress repository:05-10-2011
Last updated:02-02-2013
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://firegoby.jp/wp/single-post-widget
Total downloads:6 736
Active installs:300+
plugin download
Click to start download

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


ChangeLog