Content Template Widget (previously View Template Widget) is useful for inserting information boxes about the current post being displayed in the widget area of your theme. It is possible to configure which content types each widget will be shown on.
This plugin requires Toolset Views. Click the link below for more information on this plugin:
- Activate Views for WordPress
- Create a Content Template
- Add a WP Views Content Template widget to your site
The title field supports shortcodes, so you can easily use a wpv- shortcode in the widget title.
Although it is possible to expose the widget on all pages by selecting “Show widget everywhere”, it is most useful on predefined post types, as
archives, listings and tag pages will only return one result. (Most often the first item in the archive.)
To display a listing in the widget area, use a View Widget instead. (Included in Views.)
- PHP 5.2 or higher
- None. Translations welcome.
- No questions available.
- Fixed edge case in conditional logic, see: https://wordpress.org/support/topic/widget-shows-on-search-page
- If the content template you use in a widget does not print anything, the widget will not be displayed. More info here.
- Updated name to reflect the name change introduced in Views 1.3 (View Template -> Content Template)
- Fixed a bug where all templates would not be available on certain configurations. (Thanks peter8810)
- Initial release