{"id":47816,"date":"2010-11-15T08:00:00","date_gmt":"2010-11-15T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/custom-post-widget\/"},"modified":"2025-04-17T20:42:00","modified_gmt":"2025-04-17T20:42:00","slug":"custom-post-widget","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/custom-post-widget\/","title":{"rendered":"Content Blocks (Custom Post Widget)"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.vanderwijk.com\/wordpress\/wordpress-custom-post-widget\/?utm_source=wordpress&utm_medium=website&utm_campaign=custom_post_widget\" rel=\"nofollow ugc\">Content Blocks<\/a> allows you to display the contents of a specific custom post in a widget on in the content area using a shortcode.<\/p>\n<p>Even though you could use the text widget that comes with the default WordPress install, this plugin has some major benefits:<\/p>\n<ul>\n<li>The Content Blocks plugin enables users to <strong>use the WYSIWYG editor<\/strong> for editing the content and adding images.<\/li>\n<li>If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like <strong>non-administrator accounts to modify the widget content<\/strong>, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.<\/li>\n<li>You can even use the <strong>featured image functionality<\/strong> to display them in a widget.<\/li>\n<li>The Content Blocks plugin is <strong>compatible with the WPML<\/strong> Multi-Language plugin and automatically shows the correct language in the widget area.<\/li>\n<li>The Content Blocks can be included in posts and pages using the <strong>built-in shortcode functionality<\/strong>.<\/li>\n<\/ul>\n<p>This plugin creates a \u2018content_block\u2019 custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added \u2018public\u2019 => false to the custom post type which means that it is not accessible outside the page context.<\/p>\n<p>To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.<\/p>\n<p><strong>Includes the following translations:<\/strong><\/p>\n<ul>\n<li>Swedish (sv_SE) by <a href=\"http:\/\/krokedil.se\" rel=\"nofollow ugc\">Andreas Larsson<\/a><\/li>\n<li>Spanish (es_ES) by <a href=\"https:\/\/www.ibidemgroup.com\" rel=\"nofollow ugc\">IBIDEM GROUP<\/a><\/li>\n<li>Portuguese (pt_BR) by Ronaldo Chevalier<\/li>\n<li>Polish (pl_PL) by Kuba Skublicki<\/li>\n<li>Dutch (nl_NL) by <a href=\"https:\/\/vanderwijk.nl\" rel=\"nofollow ugc\">Johan van der Wijk<\/a><\/li>\n<li>Czech (cs_CZ) by <a href=\"http:\/\/jsemweb.cz\/\" rel=\"nofollow ugc\">Martin Kucera<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/custom-post-widget\" rel=\"nofollow ugc\">More translations are very welcome!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin enables you to edit and display Content Blocks in a sidebar widget or using a shortcode.<\/p>\n","protected":false},"author":65,"featured_media":260820,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Content Blocks (Custom Post Widget) - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"This plugin enables you to edit and display Content Blocks in a sidebar widget or using a shortcode."},"footnotes":""},"categories":[1],"tags":[288,9344,3316,345,120],"class_list":["post-47816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-block","tag-content-block","tag-custom-post","tag-shortcode","tag-widget"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=47816"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47816\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/260820"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=47816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=47816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=47816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}