{"id":18266,"date":"2012-05-23T22:59:59","date_gmt":"2012-05-23T22:59:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-one-post-widget\/"},"modified":"2026-08-16T03:53:48","modified_gmt":"2026-08-16T03:53:48","slug":"wp-one-post-widget","status":"publish","type":"plugin","link":"https:\/\/ro.wordpress.org\/plugins\/wp-one-post-widget\/","author":9223960,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.0.0","stable_tag":"3.0.0","tested":"6.7.7","requires":"5.2","requires_php":"7.4","requires_plugins":null,"header_name":"WP One Post Widget","header_author":"Rafael Tavares","header_description":"","assets_banners_color":"","last_updated":"2026-08-16 03:53:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/wp-one-post-widget\/","header_author_uri":"","rating":1,"author_block_rating":0,"active_installs":10,"downloads":11273,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"rafaeltavares","date":"2012-05-29 17:10:50"},"1.1":{"tag":"1.1","author":"rafaeltavares","date":"2012-05-29 20:33:06"},"2.0":{"tag":"2.0","author":"rafaeltavares","date":"2012-08-29 16:12:52"},"2.1":{"tag":"2.1","author":"rafaeltavares","date":"2012-08-29 16:11:14"},"3.0.0":{"tag":"3.0.0","author":"rafaeltavares","date":"2026-08-16 03:53:48"}},"upgrade_notice":{"3.0.0":"<p>Major structural update. Existing widgets are migrated conservatively to post ID when possible. Re-check each widget after upgrading.<\/p>"},"ratings":{"1":"2","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","2.0","2.1","3.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[4830,69975,86,168,162],"plugin_category":[43],"plugin_contributors":[94446],"plugin_business_model":[],"class_list":["post-18266","plugin","type-plugin","status-publish","hentry","plugin_tags-featured-post","plugin_tags-one-post","plugin_tags-post","plugin_tags-sidebar","plugin_tags-widget","plugin_category-customization","plugin_contributors-rafael-tavares","plugin_committers-rafaeltavares"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-one-post-widget.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WP One Post Widget lets you pick a single published post and show it in any widget area.<\/p>\n\n<p>Features:<\/p>\n\n<ul>\n<li>Search and select a published post from the Widgets screen<\/li>\n<li>Optional custom title<\/li>\n<li>Optional \u201cRead more\u201d label linking to the post permalink<\/li>\n<li>Optional featured image with left, right, or top placement<\/li>\n<li>Uses the post excerpt when available, otherwise a safe plain-text summary<\/li>\n<\/ul>\n\n<p>The plugin does one job: display one selected post in a widget.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>wp-one-post-widget<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin through the Plugins screen.<\/li>\n<li>Go to Appearance \u2192 Widgets (or the Customizer widgets panel).<\/li>\n<li>Add \u201cWP One Post Widget\u201d, search for a published post, and save.<\/li>\n<li>Optional: set a custom title, read-more label, and thumbnail options.<\/li>\n<\/ol>\n\n<p>Tip: for best results with summaries, fill in the post Excerpt field in the editor.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20support%20multiple%20widget%20instances%3F\"><h3>Does it support multiple widget instances?<\/h3><\/dt>\n<dd><p>Yes. Each instance stores its own selected post ID and options.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20the%20selected%20post%20is%20deleted%3F\"><h3>What happens if the selected post is deleted?<\/h3><\/dt>\n<dd><p>The widget renders nothing and does not produce PHP warnings.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20telemetry%3F\"><h3>Does the plugin send telemetry?<\/h3><\/dt>\n<dd><p>No.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Migrated registration to <code>WP_Widget<\/code>.<\/li>\n<li>Store selection by <code>post_id<\/code> instead of post title.<\/li>\n<li>Autocomplete via authenticated <code>admin-ajax<\/code> + <code>WP_Query<\/code>.<\/li>\n<li>Removed insecure public <code>data.php<\/code> endpoint.<\/li>\n<li>Removed PressTrends telemetry.<\/li>\n<li>Removed external Google jQuery \/ jQuery UI assets.<\/li>\n<li>Security hardening: nonces, capabilities, sanitization, and escaping.<\/li>\n<li>PHP modernization (no short open tags; current WordPress APIs).<\/li>\n<li>Featured image rendering and left\/right\/top positioning fixes.<\/li>\n<li>Frontend CSS limited to structural layout (theme keeps visual identity).<\/li>\n<li>Safe excerpt generation without cutting raw HTML.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Added field use image?<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Added custom title field.<\/li>\n<li>Added search suggestion field.<\/li>\n<li>Added field thumbnail position: left, right, top<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added field to customize the link read more.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version.<\/li>\n<\/ul>","raw_excerpt":"Select one specific published post and display it in a widget area.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18266"}],"author":[{"embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rafaeltavares"}],"wp:attachment":[{"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18266"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18266"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18266"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18266"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18266"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ro.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}