Version Description
Download this release
Release Info
Developer | vanderwijk |
Plugin | Content Blocks (Custom Post Widget) |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- custom-post-widget.php +1 -1
- post-widget.php +5 -5
- readme.txt +2 -2
custom-post-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
|
6 |
-
Version: 2.3.
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
|
6 |
+
Version: 2.3.3
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
post-widget.php
CHANGED
@@ -30,12 +30,12 @@ class custom_post_widget extends WP_Widget {
|
|
30 |
$content_block = get_posts( $args );
|
31 |
if ($content_block) {
|
32 |
foreach( $content_block as $content_block ) : setup_postdata( $content_block );
|
33 |
-
echo '<option value="' . $content_block->ID . '"';
|
34 |
-
if( $custom_post_id == $content_block->ID ) {
|
35 |
echo ' selected';
|
36 |
-
$widgetExtraTitle = $content_block->post_title;
|
37 |
};
|
38 |
-
echo '>' . $content_block->post_title . '</option>';
|
39 |
endforeach;
|
40 |
} else {
|
41 |
echo '<option value="">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
|
@@ -45,7 +45,7 @@ class custom_post_widget extends WP_Widget {
|
|
45 |
</label>
|
46 |
</p>
|
47 |
|
48 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle ?>" />
|
49 |
|
50 |
<p>
|
51 |
<?php
|
30 |
$content_block = get_posts( $args );
|
31 |
if ($content_block) {
|
32 |
foreach( $content_block as $content_block ) : setup_postdata( $content_block );
|
33 |
+
echo '<option value="' . $content_block -> ID . '"';
|
34 |
+
if( $custom_post_id == $content_block -> ID ) {
|
35 |
echo ' selected';
|
36 |
+
$widgetExtraTitle = $content_block -> post_title;
|
37 |
};
|
38 |
+
echo '>' . $content_block -> post_title . '</option>';
|
39 |
endforeach;
|
40 |
} else {
|
41 |
echo '<option value="">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
|
45 |
</label>
|
46 |
</p>
|
47 |
|
48 |
+
<input type="hidden" id="<?php echo $this -> get_field_id( 'title' ); ?>" name="<?php echo $this -> get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle ?>" />
|
49 |
|
50 |
<p>
|
51 |
<?php
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Author URI: http://www.vanderwijk.com/
|
|
4 |
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
|
6 |
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.
|
8 |
-
Stable tag: 2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
4 |
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
|
6 |
Requires at least: 2.9.2
|
7 |
+
Tested up to: 3.6
|
8 |
+
Stable tag: 2.3.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|