WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Custom Post Widget

This plugin enables you to edit and display Content Blocks in a sidebar widget or using a shortcode.

2.5.3

Added filter to 'public' value of the content_block post type to make it possible to use the Visual Composer plugin. See support topic: http://wordpress.org/support/topic/make-post-type-public

2.5.2

Changed require to require_once in custom-post-widget.php to solve a possible issue reported by John Sundberg. Updated SE translation files as provided by Andreas Larsson.

2.5

Added 'Content Block Information' to overview page, updated styling to reflect new 3.8 interface and rewrote javaScript code for inserting shortcode tag

2.4.5

2.4.5 javaScript fix for inserting shortcode tag

2.4.4

Added unique ID to each content block that is inserted using the shortcode functionality

2.4.3

Changed the way the shortcode button above the editor is called.

2.4

You can now add a description to the content block to make it easier for content editors to find out where the block is displayed on the site. Thanks to Andreas Larsson the plugin now includes a Swedish translation.

2.3.5

Added the option to use your own widget template file as suggested by flynsarmy. See http://wordpress.org/support/topic/patch-custom-widget-frontends?replies=1 for more information.

2.3.4

Added pt_BR translation files as kindly provided by Ronaldo Chevalier.

2.3.2

Removed hardcoded plugins folder path

2.3.1

Removed call to CUSTOM_POST_WIDGET_DIR

2.3

Various bugfixes and improvements.

2.0.3

Replaced the deprecated media_buttons_context filter with media_buttons. Thanks to Baptiste Gaillard for letting me know about this.

2.0.2

Small fix for issue with the css filepath of the editor icon. Thanks to user zudobug for reporting this issue.

2.0.1

Updated Dutch translation file.

2.0

Fix for bug caused by the 'Advanced Custom Fields' plugin. Thanks to creativexperience for troubleshooting this issue. Cleanup of lightbox popup, changed all instances of query_posts to get_post and get_posts. Support for featured image in custom post widget area. Changed shortcode button to reflect the new admin style of WordPress version 3.5.

1.9.8

Fix for error when using shortcode with the WPML plugin

1.9.7

Added featured image support and now using query_posts instead of get_post

1.9.6

Fixed debug notices when dragging a new content block to the widget areas and removed the add content block shortcode from the content block editing screen.

1.9.5

Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).

1.9.4

Corrected a minor bug regarding translation strings.

1.9.3

Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).

1.9.2

Now includes Polish language files as created by Kuba Skublicki.

1.9

The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/). Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.

1.8.6

Minor bugfix for edit link in widget.

1.8.5

This release is to fix an issue with the WordPress plugin repository.

1.8.4

Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956). Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.

1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas

The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.

1.8.2

Updated German translation and various bugfixes.

1.8

Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).

1.7

This release fixes all the debug error messages Yoast discovered when reviewing this plugin. As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.

1.6

The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.

1.5

Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.

1.4

The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com

1.3

Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.

1.2.1

The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.

1.2

Added a checkbox in the widget to make it possible to show the custom post title in the widget area

1.1.1

Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.

1.1

Fixed screenshots for plugin directory

1.0

First release

Requires: 2.9.2 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-3
Downloads: 102,739

Ratings

4 stars
4.8 out of 5 stars

Support

9 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,4,4 100,1,1
100,3,3 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,4,4 100,2,2 100,2,2
100,2,2 100,1,1
100,2,2 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,9,9 50,2,1 100,1,1 100,5,5 100,1,1
100,2,2
100,1,1 100,1,1 100,7,7 100,1,1
100,3,3 100,1,1
100,1,1
100,1,1 100,7,7
100,3,3
25,4,1 100,1,1 100,1,1 100,3,3
100,9,9
100,1,1 100,1,1
100,6,6
100,3,3 100,2,2
100,1,1 100,1,1
100,1,1 100,3,3 100,1,1 100,4,4
100,3,3 100,1,1
100,3,3 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1