A Featured Page Widget
This plugin creates a widget that features a specific page, showing its excerpt. You can also choose a post thumbnail among the registered ones in your theme. Contributing A Featured Page Widget is available on GitHub. If you want to contribute, please fork it and send a pull request! Languages Port
This plugin creates a widget that features a specific page, showing its excerpt. You can also choose a post thumbnail among the registered ones in your theme.
Contributing
A Featured Page Widget is available on GitHub. If you want to contribute, please fork it and send a pull request!
Languages
- Portuguese (Brazil)
A closer look.
- 01Upload a-featured-page-widget directory to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Go to ‘Widgets’ menu and drag it to your sidebar
Frequently asked questions.
Can I use it outside my sidebar / widget area?
Sure you can! Just call the_widget() wherever you want to display your featured page. If you want to customize it, there’s four arguments:
- page : The page ID. Required .
- title : The widget title.
- image-size : The post thumbnail size.
- link-text : The text that will replace “Continue reading”. You may leave it empty too.
Example:
<?php the_widget( 'A_Featured_Page_Widget', array( 'page' => 734, 'link-text' => '', 'image-size' => 'large' ) ); ?>
If you don’t know the page ID, you can try get_page_by_path() function:
<?php the_widget( 'A_Featured_Page_Widget', 'page=' . get_page_by_path( 'about' )->ID ); ?>