A widget to display an attractive summary of any page in any widget area.
Feature A Page Widget provides a “just works” solution for showcasing a Page, Post, or custom post type in any widget area (aka sidebar). It leverages core WordPress features, a simple set of options, and a sleek UI for selecting one of three widget layouts.
This plugin enables Featured Images (aka “Post Thumbnails”) and Excerpts for Pages and Posts (by default) with the ability to support custom post types. If you don’t see one or both of those fields, they may be hidden in the “Screen Options” (top-right corner) while editing a Page or Post.
This plugin creates multiple custom image sizes. If you use images that were uploaded to the media library before you installed this plugin, you may need to use a plugin like Regenerate Thumbnails to create the correctly-sized images.
There are multiple ways to modify the widget based on your needs:
/css/fpw_starter_styles.css
to help you get started with custom CSS styles in a child theme or the Custom CSS Customizer fieldSee the FAQs for links to code snippets with inline documentation.
Please help translate Feature A Page Widget. Users have contributed translations in the following languages:
English (default), German (de_DE
), Serbian (sr_RS
), Polish (pl_PL
), Spanish (es_ES
), Italian (it_IT
), Dutch (nl_NL
)
Full Version 2.0 Documentation
Yes.
Because this is a widget, there is no direct integration with the WordPress post editor and the basic features of this plugin are uneffected. However, if you are using the new editor, note the new location of the Excerpt field in the sidebar.
The widget gets its image from the “Featured Image” field on the page you are featuring.
The widget gets its text from the “Excerpt” field on the page you are featuring. See also: “Can I use HTML or a WYSIWYG/TinyMCE Editor with the Excerpt Field?”
The Featured Image and Excerpt fields are found on the Page editing screen of the Page you want to feature. If you don’t see them:
Indeed! Pages and Posts are feature-able by default. Use fpw_post_types
filter to add support for custom post types or remove Posts or Pages.
The widget offers three ways to customize its design and output. The right method for you depends on what you want to accomplish and what you’re comfortable doing technically.
/css/fpw_start_styles.css
for a starter stylesheet you can copy and modify.fpw_page_title
, fpw_excerpt
, and fpw_featured_image
filters. Version 2.0 adds new filters fpw_post_types
, fpw_widget_templates
, fpw_read_more_text
, and fpw_image_size
./fpw2_views/
in the active theme’s folder and copy any layout files from /wp-content/plugins/feature-a-page-widget/fpw2_views/
into the new folder to modify.fpw_widget_templates
filter. You can add new custom layouts or remove installed ones. Using the filter to only return a single layout removes the layout option from the widget and automatically uses the remaining layout.Install the Rich Text Excerpts plugin or Advanced Excerpt plugins. Either plugin should take note and display your nicely formatted excerpt.
Use the fpw_read_more_text
filter.
Use the fpw_image_size
filter.
There’s a filter for that too. See fpw_auto_excerpt
.
When selecting the page to feature in the widget settings, the list of pages includes two icons. The first icon is the featured image, and the second is the excerpt. If the icon is “lit-up,” that means that page has that piece of information. If both are lit-up, the page is ready for optimal use in the widget. See this interface in the “Screenshots” tab.
This widget is intended to be straightforward and avoid melting into “option soup.” However, that means it might not be perfect for what you need.
If you think the widget is almost right, double-check that can’t use the one of the plugin’s filters or the widget view template (see “I want to modify how the widget looks/works”). If that doesn’t work, submit some feedback for future versions of the plugins. And of course, there’s always the support forum.
If this plugin is more than a little off, you might be looking for a different plugin like Posts in Sidebar or Genesis Featured Page Advanced (Genesis only).