BACK TO DIRECTORY

Single Post Widget

by Takayuki Miyauchi

0.0
(0 ratings)

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.

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

Contributors

Credits

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

Contact

twitter @miya0001

Plugin Details

Active Installs
200
Total Downloads
7,679
Version
0.4.0
Requires WP
3.2
Requires PHP
Tested Up To
3.5.2
Added
2011-10-05
Last Updated
2013-02-02 5:33pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0

Tags