Title: A Featured Page Widget
Author: Eduardo Zulian
Published: <strong>June 6, 2013</strong>
Last modified: October 30, 2015

---

Search plugins

![](https://ps.w.org/a-featured-page-widget/assets/banner-772x250.png?rev=725954)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/a-featured-page-widget/assets/icon-256x256.png?rev=1276571)

# A Featured Page Widget

 By [Eduardo Zulian](https://profiles.wordpress.org/eduardozulian/)

[Download](https://downloads.wordpress.org/plugin/a-featured-page-widget.1.3.zip)

 * [Details](https://wordpress.org/plugins/a-featured-page-widget/#description)
 * [Reviews](https://wordpress.org/plugins/a-featured-page-widget/#reviews)
 *  [Installation](https://wordpress.org/plugins/a-featured-page-widget/#installation)
 * [Development](https://wordpress.org/plugins/a-featured-page-widget/#developers)

 [Support](https://wordpress.org/support/plugin/a-featured-page-widget/)

## Description

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](https://github.com/eduardozulian/a-featured-page-widget)
is available on GitHub. If you want to contribute, please fork it and send a pull
request!

#### Languages

 * Portuguese (Brazil)

## Screenshots

[⌊The widget configuration.⌉⌊The widget configuration.⌉[

The widget configuration.

## Installation

 1. Upload `a-featured-page-widget` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to ‘Widgets’ menu and drag it to your sidebar

## FAQ

  Can I use it outside my sidebar / widget area?

Sure you can! Just call [`the_widget()`](https://codex.wordpress.org/Function_Reference/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()`](https://codex.wordpress.org/Function_Reference/get_page_by_path)
function:

    ```
    <?php
    the_widget( 'A_Featured_Page_Widget', 'page=' . get_page_by_path( 'about' )->ID );
    ?>
    ```

  Can I change the default text “Continue reading”?

Yes. In your `functions.php` file, you cand use the `afpw_link_text` filter:

    ```
    <?php
    function mytheme_change_afpw_link_text() {
        return 'Learn more';
    }

    add_filter( 'afpw_link_text', 'mytheme_change_afpw_link_text' );
    ?>
    ```

  Why am I unable to define a manual excerpt for my pages?

First, check if the option for excerpts is not showing under “Screen Options”. If
that’s the case, probably your theme doesn’t support excerpts in pages. You need
to use [`add_post_type_support()`](https://codex.wordpress.org/Function_Reference/add_post_type_support)
inside your `functions.php` file:

    ```
    <?php
    function mytheme_add_page_excerpt() {
        add_post_type_support( 'page', 'excerpt' );
    }

    add_action( 'init', 'mytheme_add_page_excerpt' );
    ?>
    ```

  Who are these three little witches on the banner above?

Arnaldo Baptista, Rita Lee and Sérgio Dias, also known as Os Mutantes, a Brazilian
psychedelic rock band of the late ’60s. You should check them out!

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“A Featured Page Widget” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Eduardo Zulian ](https://profiles.wordpress.org/eduardozulian/)

[Translate “A Featured Page Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/a-featured-page-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/a-featured-page-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/a-featured-page-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/a-featured-page-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/a-featured-page-widget/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3

 * Introduce classes generally used for post thumbnails, such as `post-thumbnail`
   and `entry-image`.
 * Update coding standards.

#### 1.2

 * Added widget defaults and removed cache functionality to work correctly with `
   the_widget()`.
 * Replaced `page-link` argument with `link-text`.

#### 1.1

 * Added a filter for the “Continue reading” text.
 * Now we have a FAQ.

#### 1.0

 * First version.

## Meta

 *  Version **1.3**
 *  Last updated **11 years ago**
 *  Active installations **100+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **4.3.34**
 * Tags
 * [featured page](https://wordpress.org/plugins/tags/featured-page/)[page widget](https://wordpress.org/plugins/tags/page-widget/)
   [pages](https://wordpress.org/plugins/tags/pages/)[sidebar](https://wordpress.org/plugins/tags/sidebar/)
   [widget](https://wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://wordpress.org/plugins/a-featured-page-widget/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/a-featured-page-widget/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/a-featured-page-widget/reviews/)

## Contributors

 *   [ Eduardo Zulian ](https://profiles.wordpress.org/eduardozulian/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/a-featured-page-widget/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H28V8F5PHSZHA)