Content Blocks (Custom Post Widget) - Version 1.1.1

Version Description

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

=

Download this release

Release Info

Developer vanderwijk
Plugin Icon 128x128 Content Blocks (Custom Post Widget)
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

Files changed (2) hide show
  1. custom-post-widget.php +2 -2
  2. readme.txt +5 -2
custom-post-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Post Widget
4
  Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
  Description: Show the content of a custom post of the type 'content_block' in a widget.
6
- Version: 1.0
7
  Author: Johan van der Wijk
8
  Author URI: http://www.vanderwijk.com
9
 
@@ -28,7 +28,7 @@ class custom_post_widget extends WP_Widget
28
  <p>
29
  <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
  <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
- <?php query_posts('post_type=content_block&orderby=ID&order=ASC');
32
  if ( have_posts() ) : while ( have_posts() ) : the_post();
33
  $currentID = get_the_ID();
34
  if($currentID == $custom_post_id)
3
  Plugin Name: Custom Post Widget
4
  Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
  Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.1.1
7
  Author: Johan van der Wijk
8
  Author URI: http://www.vanderwijk.com
9
 
28
  <p>
29
  <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
  <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
32
  if ( have_posts() ) : while ( have_posts() ) : the_post();
33
  $currentID = get_the_ID();
34
  if($currentID == $custom_post_id)
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.vanderwijk.com/
4
  Tags: custom post, widget, sidebar
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
- Stable tag: 1.0
8
 
9
  This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
 
@@ -26,7 +26,7 @@ To add content to a widget, drag it to the required position in the sidebar and
26
 
27
  == Installation ==
28
 
29
- 1. First you will have to upload the plugin to the plugin folder.
30
  2. Then activate the plugin in the plugin panel.
31
  You will see that a new custom post type has been added called Content Block.
32
  3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
@@ -49,6 +49,9 @@ It is recommended to install the Widget Logic plugin, this will give you complet
49
  = 1.0 =
50
  First release
51
 
 
 
 
52
  == Upgrade Notice ==
53
 
54
  = 1.0 =
4
  Tags: custom post, widget, sidebar
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.1.1
8
 
9
  This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
 
26
 
27
  == Installation ==
28
 
29
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
30
  2. Then activate the plugin in the plugin panel.
31
  You will see that a new custom post type has been added called Content Block.
32
  3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
49
  = 1.0 =
50
  First release
51
 
52
+ = 1.1.1 =
53
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
54
+
55
  == Upgrade Notice ==
56
 
57
  = 1.0 =