This plugin works within the Genesis Framework. It replaces the default Genesis Featured Page widget.
This plugin is a very slightly modified version of the Genesis Featured Page Widget. For sites using a static Front Page plus a Posts Page, this plugin will allow you to display your posts page in the widget. If you select the posts/blog page to show in the Featured Page widget, the output will work this way:
- if the posts page has no content of its own, the title and content of the first page shall be used for output.
- if the posts page has content of its own, even if it doesn't show on the page itself, the title and content of the posts page shall be used for output.
For standard pages, the behavior of the Featured Page widget is unchanged.
- WordPress 3.8, tested up to 4.0
- the Genesis Framework
- Download the latest tagged archive (choose the "zip" option).
- Go to the Plugins -> Add New screen and click the Upload tab.
- Upload the zipped archive directly.
- Go to the Plugins screen and click Activate.
- Download the latest tagged archive (choose the "zip" option).
- Unzip the archive.
- Copy the folder to your
/wp-content/plugins/
directory. - Go to the Plugins screen and click Activate.
Check out the Codex for more information about installing plugins manually.
Using git, browse to your /wp-content/plugins/
directory and clone this repository:
git clone [email protected]:robincornett/genesis-featured-page-static-widget.git
Then go to your Plugins screen and click Activate.
Create a home.php file with this code in it and upload it to your theme directory.
- Built by Robin Cornett
###1.0.3
- corrected image link if widget is not for home page
- tightened logic to test against page_id instead of is_home()
###1.0.2
- plugin now deactivates if Genesis isn't the active theme.
###1.0.1
- Title/content output is now conditional on existence of Posts Page content
- confusing new option is removed from widget input
###1.0.0
- Initial release on Github