HTML Plus Recent Posts by Category Widget

Description

This widget allows you to insert arbitrary Text and/or HTML code (optional) to precede a list of recent posts by category. It makes it easy to add introductory comments and to achieve interesting effects like wrapping your posts list around an image. It’s designed to be lightweight and easy on resources.

Note: Widget Blocks, added in WordPress 5.8, make this plugin no longer necessary. The same results can be obtained by using a Widget Group, Heading Block, Custom HTML Block, and the Latest Posts Block. The latter also allows the use of multiple categories, which is not available with this plugin. Unless something major happens to change things, I won’t be developing the plugin beyond the current version (2.0.0).

Screenshots

  • This is the user interface of the HTML Plus Recent Posts by Category Widget.

Installation

  1. Upload the plugin by using Plugins -> Add New.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Add the widget to the desired location in Appearance -> Widgets.
  4. Set the title, content, and category.
  5. Save your changes.

FAQ

Can this widget display more than one category of posts?

You can specify only one post category for each instance of the widget. If you want to display more than one category of recent posts, you can use more than one instance of the widget.

What if I just want to display recent posts by category, and no HTML?

If you don’t need to display any HTML, just leave the Content section blank.

Can I include an image in the Content field?

Yes, you can include images or any other HTML allowed in the default custom HTML widget in the Content field.

How can I customize the display of the widget?

You can use the class “htmlplusrecpostsbycat”, which wraps the widget, to customize the CSS, as well as the classes assigned by WordPress and your theme.

Is it compatible with PHP 8.0?

Yes.

What happened to the “Automatically Add Paragraphs” option?

The automatic paragraph option and functionaility was removed in versiion 2.0.0 in order to take advantage of the features incorporated in the WordPress default custom HTML UI. If you were relying on the automatic paragraph option for existing widgets, you can either stick with version 1.3.2, or modify your widgets to use HTML paragraph tags and upgrade the plugin to version 2.x.

Reviews

November 12, 2021
No unnecessary features, just what I need. Clean, pure love 😀
Read all 1 review

Contributors & Developers

“HTML Plus Recent Posts by Category Widget” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.0.0

  • Added custom HTML coding aids and syntax coloring via the default Custom HTML Widget.
  • Removed auto-paragraph capability. (Update your existing widgets that used this with paragraph tags before upgrading!)

1.3.2

  • PHP cleanup.
  • Verify PHP 8.0 compatibility.
  • Change translation functions to provide defaults.
  • Update plugin details.

1.3.1

  • Code streamlining.
  • Add PHP requirement.

1.3.0

  • PHP 7.2 compatibility: removed create_function() call
  • WordPress version testing to 4.9.6

1.2

  • Fixed POT file location.

1.1

  • Added internationalization.

1.0

  • Initial release.