{"id":23713,"date":"2013-06-06T02:07:14","date_gmt":"2013-06-06T02:07:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/a-featured-page-widget\/"},"modified":"2015-10-30T19:13:46","modified_gmt":"2015-10-30T19:13:46","slug":"a-featured-page-widget","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/a-featured-page-widget\/","author":587564,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"4.3.34","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"A Featured Page Widget","header_author":"Eduardo Zulian","header_description":"","assets_banners_color":"7c7885","last_updated":"2015-10-30 19:13:46","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=H28V8F5PHSZHA","header_plugin_uri":"http:\/\/github.com\/eduardozulian\/a-featured-page-widget","header_author_uri":"http:\/\/flutuante.com.br","rating":0,"author_block_rating":0,"active_installs":100,"downloads":6830,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1276571","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1276571","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"725954","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"725954","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"725043","resolution":"1","location":"assets"}},"screenshots":{"1":"The widget configuration."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1338,1337,243,168,162],"plugin_category":[43],"plugin_contributors":[84757],"plugin_business_model":[],"class_list":["post-23713","plugin","type-plugin","status-publish","hentry","plugin_tags-featured-page","plugin_tags-page-widget","plugin_tags-pages","plugin_tags-sidebar","plugin_tags-widget","plugin_category-customization","plugin_contributors-eduardozulian","plugin_committers-eduardozulian"],"banners":{"banner":"https:\/\/ps.w.org\/a-featured-page-widget\/assets\/banner-772x250.png?rev=725954","banner_2x":"https:\/\/ps.w.org\/a-featured-page-widget\/assets\/banner-1544x500.png?rev=725954","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/a-featured-page-widget\/assets\/icon-128x128.png?rev=1276571","icon_2x":"https:\/\/ps.w.org\/a-featured-page-widget\/assets\/icon-256x256.png?rev=1276571","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/a-featured-page-widget\/assets\/screenshot-1.png?rev=725043","caption":"The widget configuration."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<h4>Contributing<\/h4>\n\n<p><a href=\"https:\/\/github.com\/eduardozulian\/a-featured-page-widget\">A Featured Page Widget<\/a> is available on GitHub. If you want to contribute, please fork it and send a pull request!<\/p>\n\n<h4>Languages<\/h4>\n\n<ul>\n<li>Portuguese (Brazil)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>a-featured-page-widget<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to 'Widgets' menu and drag it to your sidebar<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Can I use it outside my sidebar \/ widget area?<\/dt>\n<dd><p>Sure you can! Just call <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/the_widget\"><code>the_widget()<\/code><\/a> wherever you want to display your featured page. If you want to customize it, there's four arguments:<\/p>\n\n<ul>\n<li><code>page<\/code>: The page ID. <em>Required<\/em>.<\/li>\n<li><code>title<\/code>: The widget title.<\/li>\n<li><code>image-size<\/code>: The post thumbnail size. <\/li>\n<li><code>link-text<\/code>: The text that will replace \"Continue reading\". You may leave it empty too.<\/li>\n<\/ul>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php\nthe_widget( 'A_Featured_Page_Widget', array( 'page' =&gt; 734, 'link-text' =&gt; '', 'image-size' =&gt; 'large' ) );\n?&gt;\n<\/code><\/pre>\n\n<p>If you don't know the page ID, you can try <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/get_page_by_path\"><code>get_page_by_path()<\/code><\/a> function:<\/p>\n\n<pre><code>&lt;?php\nthe_widget( 'A_Featured_Page_Widget', 'page=' . get_page_by_path( 'about' )-&gt;ID );\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>Can I change the default text \"Continue reading\"?<\/dt>\n<dd><p>Yes. In your <code>functions.php<\/code> file, you cand use the <code>afpw_link_text<\/code> filter:<\/p>\n\n<pre><code>&lt;?php\nfunction mytheme_change_afpw_link_text() {\n    return 'Learn more';\n}\n\nadd_filter( 'afpw_link_text', 'mytheme_change_afpw_link_text' );\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>Why am I unable to define a manual excerpt for my pages?<\/dt>\n<dd><p>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 <a href=\"http:\/\/codex.wordpress.org\/Function_Reference\/add_post_type_support\"><code>add_post_type_support()<\/code><\/a> inside your <code>functions.php<\/code> file:<\/p>\n\n<pre><code>&lt;?php\nfunction mytheme_add_page_excerpt() {\n    add_post_type_support( 'page', 'excerpt' );\n}\n\nadd_action( 'init', 'mytheme_add_page_excerpt' );\n?&gt;\n<\/code><\/pre><\/dd>\n<dt>Who are these three little witches on the banner above?<\/dt>\n<dd><p>Arnaldo Baptista, Rita Lee and S\u00e9rgio Dias, also known as Os Mutantes, a Brazilian psychedelic rock band of the late '60s. You should check them out!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>Introduce classes generally used for post thumbnails, such as <code>post-thumbnail<\/code> and <code>entry-image<\/code>.<\/li>\n<li>Update coding standards.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added widget defaults and removed cache functionality to work correctly with <code>the_widget()<\/code>.<\/li>\n<li>Replaced <code>page-link<\/code> argument with <code>link-text<\/code>.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added a filter for the \"Continue reading\" text.<\/li>\n<li>Now we have a FAQ.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"Feature a page and display its excerpt and post thumbnail.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23713"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eduardozulian"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23713"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23713"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23713"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23713"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23713"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}