Version Description
Updated Dutch translation file.
Download this release
Release Info
Developer | vanderwijk |
Plugin | Content Blocks (Custom Post Widget) |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.0.1
- custom-post-widget.php +2 -2
- languages/custom-post-widget-nl_NL.mo +0 -0
- languages/custom-post-widget-nl_NL.po +128 -84
- post-widget.php +1 -0
- readme.txt +26 -18
custom-post-widget.php
CHANGED
@@ -3,12 +3,12 @@
|
|
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: 2.0
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
10 |
|
11 |
-
Release notes: Version 2.0
|
12 |
|
13 |
Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
|
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: 2.0.1
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
10 |
|
11 |
+
Release notes: Version 2.0.1 Updated dutch translation file
|
12 |
|
13 |
Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
|
languages/custom-post-widget-nl_NL.mo
CHANGED
Binary file
|
languages/custom-post-widget-nl_NL.po
CHANGED
@@ -2,173 +2,217 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Post Widget\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <
|
8 |
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-
|
14 |
-
"X-Poedit-
|
15 |
-
"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
"X-Textdomain-Support: yes\n"
|
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
|
|
20 |
|
21 |
-
|
22 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
msgid "Displays custom post content in a widget"
|
24 |
msgstr "Toont een inhoudsblok in een widget"
|
25 |
|
26 |
-
|
27 |
-
#: post-widget.php:
|
28 |
msgid "Content Block"
|
29 |
msgstr "Inhoudsblok"
|
30 |
|
31 |
-
|
32 |
-
#: post-widget.php:
|
33 |
msgid "Content Block to Display:"
|
34 |
msgstr "Weer te geven inhoudsblok:"
|
35 |
|
36 |
-
|
37 |
-
#: post-widget.php:
|
38 |
-
msgid "
|
39 |
-
msgstr "
|
40 |
|
41 |
-
|
42 |
-
#: post-widget.php:
|
43 |
msgid "Show Post Title"
|
44 |
msgstr "Toon de titel"
|
45 |
|
46 |
-
#: post-widget.php:
|
|
|
|
|
|
|
|
|
47 |
msgid "Do not apply content filters"
|
48 |
msgstr "Apply_filters niet toepassen"
|
49 |
|
50 |
-
|
51 |
-
#: post-widget.php:
|
52 |
msgid "Find"
|
53 |
msgstr "Zoeken"
|
54 |
|
55 |
-
|
56 |
-
#: post-widget.php:
|
57 |
msgctxt "post type general name"
|
58 |
msgid "Content Blocks"
|
59 |
msgstr "Inhoudsblokken"
|
60 |
|
61 |
-
|
62 |
-
#: post-widget.php:
|
63 |
msgctxt "post type singular name"
|
64 |
msgid "Content Block"
|
65 |
msgstr "Inhoudsblok"
|
66 |
|
67 |
-
|
68 |
-
#: post-widget.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
msgctxt "block"
|
70 |
msgid "Add Content Block"
|
71 |
msgstr "Nieuw Inhoudsblok"
|
72 |
|
73 |
-
|
74 |
-
#: post-widget.php:
|
75 |
msgid "Add New Content Block"
|
76 |
msgstr "Nieuw inhoudsblok toevoegen"
|
77 |
|
78 |
-
|
79 |
-
#: post-widget.php:
|
80 |
-
msgid "Edit Content Block"
|
81 |
-
msgstr "Inhoudsblok Bewerken"
|
82 |
-
|
83 |
-
#@ custom-post-widget
|
84 |
-
#: post-widget.php:100
|
85 |
msgid "New Content Block"
|
86 |
msgstr "Nieuw Inhoudsblok"
|
87 |
|
88 |
-
|
89 |
-
#: post-widget.php:
|
90 |
msgid "View Content Block"
|
91 |
msgstr "Inhoudsblok Bekijken"
|
92 |
|
93 |
-
|
94 |
-
#: post-widget.php:
|
95 |
msgid "Search Content Blocks"
|
96 |
msgstr "Inhoudsblokken zoeken"
|
97 |
|
98 |
-
|
99 |
-
#: post-widget.php:
|
100 |
msgid "No Content Blocks Found"
|
101 |
msgstr "Geen Inhoudsblokken"
|
102 |
|
103 |
-
|
104 |
-
#: post-widget.php:
|
105 |
msgid "No Content Blocks found in Trash"
|
106 |
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
107 |
|
108 |
-
|
109 |
-
#: post-widget.php:
|
110 |
#, php-format
|
111 |
-
msgid "Content Block updated. <a href=\"%s\">
|
112 |
-
msgstr "Inhoudsblok
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
-
|
115 |
-
#: post-widget.php:
|
116 |
msgid "Custom field updated."
|
117 |
msgstr "Custom field bijgewerkt."
|
118 |
|
119 |
-
|
120 |
-
#: post-widget.php:
|
121 |
msgid "Custom field deleted."
|
122 |
msgstr "Custom field verwijderd."
|
123 |
|
124 |
-
|
125 |
-
#: post-widget.php:
|
126 |
-
msgid "Content Block updated."
|
127 |
-
msgstr "Inhoudsblok bijgewerkt."
|
128 |
-
|
129 |
-
#@ custom-post-widget
|
130 |
-
#: post-widget.php:133
|
131 |
#, php-format
|
132 |
msgid "Content Block restored to revision from %s"
|
133 |
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
134 |
|
135 |
-
|
136 |
-
#: post-widget.php:
|
137 |
#, php-format
|
138 |
-
msgid "Content Block published. <a href=\"%s\">
|
139 |
-
msgstr "Inhoudsblok
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
-
|
142 |
-
#: post-widget.php:
|
143 |
msgid "Block saved."
|
144 |
msgstr "Inhoudsblok Opgeslagen."
|
145 |
|
146 |
-
|
147 |
-
#: post-widget.php:
|
148 |
#, php-format
|
149 |
-
msgid "Content Block submitted. <a
|
150 |
-
msgstr "Inhoudsblok
|
151 |
|
152 |
-
|
153 |
-
#: post-widget.php:
|
|
|
|
|
|
|
|
|
|
|
154 |
#, php-format
|
155 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>.
|
156 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>.
|
157 |
|
158 |
-
|
159 |
-
#: post-widget.php:
|
160 |
msgid "M j, Y @ G:i"
|
161 |
msgstr "j. M Y @ H:M"
|
162 |
|
163 |
-
|
164 |
-
#: post-widget.php:
|
165 |
#, php-format
|
166 |
-
msgid "Content Block draft updated. <a
|
167 |
-
msgstr "Inhoudsblok
|
168 |
|
169 |
-
|
170 |
-
#: post-widget.php:
|
171 |
-
|
172 |
-
|
173 |
-
msgstr "Inhoudsblokken"
|
174 |
|
|
|
|
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Custom Post Widget\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-01-07 10:13+0100\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: Johan van der Wijk <johan@vanderwijk.nl>\n"
|
8 |
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
+
"Language: nl_NL\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
|
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
"X-Textdomain-Support: yes\n"
|
19 |
+
"X-Generator: Poedit 1.5.4\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
"X-Poedit-SearchPath-1: ..\n"
|
22 |
|
23 |
+
# @ custom-post-widget
|
24 |
+
#: ../popup.php:9
|
25 |
+
msgid "Please select a Content Block"
|
26 |
+
msgstr "Kies een inhoudsblok"
|
27 |
+
|
28 |
+
# @ custom-post-widget
|
29 |
+
#: ../popup.php:19 ../popup.php:43
|
30 |
+
msgid "Insert Content Block"
|
31 |
+
msgstr "Voeg inhoudsblok toe"
|
32 |
+
|
33 |
+
#: ../popup.php:22
|
34 |
+
msgid "Select a Content Block below to add it to your post or page."
|
35 |
+
msgstr "Kies een Inhoudsblok om toe te voegen."
|
36 |
+
|
37 |
+
# @ custom-post-widget
|
38 |
+
#: ../popup.php:27
|
39 |
+
msgid "Select a Content Block"
|
40 |
+
msgstr "Selecteer een inhoudsblok"
|
41 |
+
|
42 |
+
# @ custom-post-widget
|
43 |
+
#: ../popup.php:37 ../post-widget.php:41
|
44 |
+
msgid "No content blocks available"
|
45 |
+
msgstr "Geen inhoudsblokken beschikbaar"
|
46 |
+
|
47 |
+
# @ custom-post-widget
|
48 |
+
#: ../post-widget.php:11
|
49 |
msgid "Displays custom post content in a widget"
|
50 |
msgstr "Toont een inhoudsblok in een widget"
|
51 |
|
52 |
+
# @ custom-post-widget
|
53 |
+
#: ../post-widget.php:12
|
54 |
msgid "Content Block"
|
55 |
msgstr "Inhoudsblok"
|
56 |
|
57 |
+
# @ custom-post-widget
|
58 |
+
#: ../post-widget.php:26
|
59 |
msgid "Content Block to Display:"
|
60 |
msgstr "Weer te geven inhoudsblok:"
|
61 |
|
62 |
+
# @ custom-post-widget
|
63 |
+
#: ../post-widget.php:52 ../post-widget.php:119
|
64 |
+
msgid "Edit Content Block"
|
65 |
+
msgstr "Inhoudsblok Bewerken"
|
66 |
|
67 |
+
# @ custom-post-widget
|
68 |
+
#: ../post-widget.php:58
|
69 |
msgid "Show Post Title"
|
70 |
msgstr "Toon de titel"
|
71 |
|
72 |
+
#: ../post-widget.php:63
|
73 |
+
msgid "Show featured image"
|
74 |
+
msgstr "Toon uitgelichte afbeelding"
|
75 |
+
|
76 |
+
#: ../post-widget.php:68
|
77 |
msgid "Do not apply content filters"
|
78 |
msgstr "Apply_filters niet toepassen"
|
79 |
|
80 |
+
# @ custom-post-widget
|
81 |
+
#: ../post-widget.php:83
|
82 |
msgid "Find"
|
83 |
msgstr "Zoeken"
|
84 |
|
85 |
+
# @ custom-post-widget
|
86 |
+
#: ../post-widget.php:114
|
87 |
msgctxt "post type general name"
|
88 |
msgid "Content Blocks"
|
89 |
msgstr "Inhoudsblokken"
|
90 |
|
91 |
+
# @ custom-post-widget
|
92 |
+
#: ../post-widget.php:115
|
93 |
msgctxt "post type singular name"
|
94 |
msgid "Content Block"
|
95 |
msgstr "Inhoudsblok"
|
96 |
|
97 |
+
# @ custom-post-widget
|
98 |
+
#: ../post-widget.php:116
|
99 |
+
msgctxt "post type plural name"
|
100 |
+
msgid "Content Blocks"
|
101 |
+
msgstr "Inhoudsblokken"
|
102 |
+
|
103 |
+
# @ custom-post-widget
|
104 |
+
#: ../post-widget.php:117
|
105 |
msgctxt "block"
|
106 |
msgid "Add Content Block"
|
107 |
msgstr "Nieuw Inhoudsblok"
|
108 |
|
109 |
+
# @ custom-post-widget
|
110 |
+
#: ../post-widget.php:118
|
111 |
msgid "Add New Content Block"
|
112 |
msgstr "Nieuw inhoudsblok toevoegen"
|
113 |
|
114 |
+
# @ custom-post-widget
|
115 |
+
#: ../post-widget.php:120
|
|
|
|
|
|
|
|
|
|
|
116 |
msgid "New Content Block"
|
117 |
msgstr "Nieuw Inhoudsblok"
|
118 |
|
119 |
+
# @ custom-post-widget
|
120 |
+
#: ../post-widget.php:121
|
121 |
msgid "View Content Block"
|
122 |
msgstr "Inhoudsblok Bekijken"
|
123 |
|
124 |
+
# @ custom-post-widget
|
125 |
+
#: ../post-widget.php:122
|
126 |
msgid "Search Content Blocks"
|
127 |
msgstr "Inhoudsblokken zoeken"
|
128 |
|
129 |
+
# @ custom-post-widget
|
130 |
+
#: ../post-widget.php:123
|
131 |
msgid "No Content Blocks Found"
|
132 |
msgstr "Geen Inhoudsblokken"
|
133 |
|
134 |
+
# @ custom-post-widget
|
135 |
+
#: ../post-widget.php:124
|
136 |
msgid "No Content Blocks found in Trash"
|
137 |
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
138 |
|
139 |
+
# @ custom-post-widget
|
140 |
+
#: ../post-widget.php:166
|
141 |
#, php-format
|
142 |
+
msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
|
143 |
+
msgstr "Inhoudsblok bijgewerkt. <a href=\"%s\">Beheer Widgets</a>"
|
144 |
+
|
145 |
+
# @ custom-post-widget
|
146 |
+
#: ../post-widget.php:166 ../post-widget.php:169
|
147 |
+
msgid "Content Block updated."
|
148 |
+
msgstr "Inhoudsblok bijgewerkt."
|
149 |
|
150 |
+
# @ custom-post-widget
|
151 |
+
#: ../post-widget.php:167
|
152 |
msgid "Custom field updated."
|
153 |
msgstr "Custom field bijgewerkt."
|
154 |
|
155 |
+
# @ custom-post-widget
|
156 |
+
#: ../post-widget.php:168
|
157 |
msgid "Custom field deleted."
|
158 |
msgstr "Custom field verwijderd."
|
159 |
|
160 |
+
# @ custom-post-widget
|
161 |
+
#: ../post-widget.php:170
|
|
|
|
|
|
|
|
|
|
|
162 |
#, php-format
|
163 |
msgid "Content Block restored to revision from %s"
|
164 |
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
165 |
|
166 |
+
# @ custom-post-widget
|
167 |
+
#: ../post-widget.php:171
|
168 |
#, php-format
|
169 |
+
msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
|
170 |
+
msgstr "Inhoudsblok gepubliceerd. <a href=\"%s\">Beheer Widgets</a>"
|
171 |
+
|
172 |
+
# @ custom-post-widget
|
173 |
+
#: ../post-widget.php:171
|
174 |
+
msgid "Content Block published."
|
175 |
+
msgstr "Inhoudsblok gepubliceerd."
|
176 |
|
177 |
+
# @ custom-post-widget
|
178 |
+
#: ../post-widget.php:172
|
179 |
msgid "Block saved."
|
180 |
msgstr "Inhoudsblok Opgeslagen."
|
181 |
|
182 |
+
# @ custom-post-widget
|
183 |
+
#: ../post-widget.php:173
|
184 |
#, php-format
|
185 |
+
msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
|
186 |
+
msgstr "Inhoudsblok toegevoegd. <a href=\"%s\">Beheer Widgets</a>"
|
187 |
|
188 |
+
# @ custom-post-widget
|
189 |
+
#: ../post-widget.php:173
|
190 |
+
msgid "Content Block submitted."
|
191 |
+
msgstr "Inhoudsblok toegevoegd."
|
192 |
+
|
193 |
+
# @ custom-post-widget
|
194 |
+
#: ../post-widget.php:174
|
195 |
#, php-format
|
196 |
+
msgid "Content Block scheduled for: <strong>%1$s</strong>."
|
197 |
+
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>."
|
198 |
|
199 |
+
# @ custom-post-widget
|
200 |
+
#: ../post-widget.php:174
|
201 |
msgid "M j, Y @ G:i"
|
202 |
msgstr "j. M Y @ H:M"
|
203 |
|
204 |
+
# @ custom-post-widget
|
205 |
+
#: ../post-widget.php:175
|
206 |
#, php-format
|
207 |
+
msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
|
208 |
+
msgstr "Concept Inhoudsblok Bijgewerkt. <a href=\"%s\">Beheer Widgets</a>"
|
209 |
|
210 |
+
# @ custom-post-widget
|
211 |
+
#: ../post-widget.php:175
|
212 |
+
msgid "Content Block draft updated."
|
213 |
+
msgstr "Concept Inhoudsblok bijgewerkt."
|
|
|
214 |
|
215 |
+
# @ custom-post-widget
|
216 |
+
#: ../post-widget.php:222 ../post-widget.php:223
|
217 |
+
msgid "Add Content Block"
|
218 |
+
msgstr "Inhoudsblok toevoegen"
|
post-widget.php
CHANGED
@@ -78,6 +78,7 @@ class custom_post_widget extends WP_Widget {
|
|
78 |
return $instance;
|
79 |
}
|
80 |
|
|
|
81 |
function widget($args, $instance) {
|
82 |
extract($args);
|
83 |
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
|
78 |
return $instance;
|
79 |
}
|
80 |
|
81 |
+
// Display the content block content in the widget area
|
82 |
function widget($args, $instance) {
|
83 |
extract($args);
|
84 |
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Contributors: vanderwijk
|
3 |
Author URI: http://www.vanderwijk.com/
|
4 |
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags:
|
6 |
Requires at least: 2.9.2
|
7 |
Tested up to: 3.5
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -19,6 +19,9 @@ Even though you could use the text widget that comes with the default WordPress
|
|
19 |
|
20 |
* 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 editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
21 |
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
|
|
|
|
|
|
22 |
|
23 |
This plugin creates a 'content_block' 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 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
24 |
|
@@ -30,7 +33,7 @@ You can find more information about this plugin and a screencast video which sho
|
|
30 |
|
31 |
== Screenshots ==
|
32 |
|
33 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added. You
|
34 |
2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
|
35 |
|
36 |
== Installation ==
|
@@ -58,31 +61,35 @@ It is recommended to install the Widget Logic plugin, this will give you complet
|
|
58 |
= How can I display the featured image in the widget? =
|
59 |
|
60 |
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
61 |
-
|
62 |
-
`function InsertFeaturedImage($content) {
|
63 |
-
global $post;
|
64 |
-
$original_content = $content;
|
65 |
-
if (current_theme_supports('post-thumbnails')) {
|
66 |
-
if ('content_block' == get_post_type()) {
|
67 |
-
$content = the_post_thumbnail('medium');
|
68 |
-
$content .= $original_content;
|
69 |
-
}
|
70 |
-
}
|
71 |
-
return $content;
|
72 |
-
}
|
73 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
74 |
|
75 |
= My social sharing plugin adds buttons to all the Custom Post Widget areas =
|
76 |
|
77 |
If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
82 |
= 2.0 =
|
83 |
Fix for bug caused by the 'Advanced Custom Fields' plugin. Thanks to creativexperience for troubleshooting this issue.
|
84 |
Cleanup of lightbox popup, changed all instances of query_posts to get_post and get_posts.
|
85 |
Support for featured image in custom post widget area.
|
|
|
86 |
|
87 |
= 1.9.8 =
|
88 |
Fix for error when using shortcode with the WPML plugin
|
@@ -161,7 +168,8 @@ First release
|
|
161 |
|
162 |
== Upgrade Notice ==
|
163 |
|
164 |
-
=
|
165 |
-
|
|
|
166 |
|
167 |
|
2 |
Contributors: vanderwijk
|
3 |
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.5
|
8 |
+
Stable tag: 2.0.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
19 |
|
20 |
* 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 editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
21 |
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
22 |
+
* You can even use the featured image functionality to display them in a widget.
|
23 |
+
* The Custom Post Widget is compatible with the WPML Multi-Language plugin and automatically shows the correct language in the widget area.
|
24 |
+
* The Content Blocks can be included in posts and pages using the built-in shortcode functionality.
|
25 |
|
26 |
This plugin creates a 'content_block' 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 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
27 |
|
33 |
|
34 |
== Screenshots ==
|
35 |
|
36 |
+
1. After activating the plugin a new post type called 'Content Blocks' is added. You will also see a button above the WYSIWYG editor that allows you to insert the content block using the shortcode.
|
37 |
2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
|
38 |
|
39 |
== Installation ==
|
61 |
= How can I display the featured image in the widget? =
|
62 |
|
63 |
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
64 |
+
Note that featured image will not be resized, so you will have to make sure it is the right size when uploading or restrict the image size via the stylesheet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
= My social sharing plugin adds buttons to all the Custom Post Widget areas =
|
67 |
|
68 |
If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
|
69 |
|
70 |
+
= The title and featured image are not displayed when using the shortcode =
|
71 |
+
|
72 |
+
Currently the shortcode function only outputs the post content of the content block, future support for displaying the title and/or the attached featured image is being considered.
|
73 |
+
|
74 |
+
= The plugin is not working for me =
|
75 |
+
|
76 |
+
Please create a support topic in the forum: http://wordpress.org/support/plugin/custom-post-widget
|
77 |
+
DO NOT click the 'Broken' button in the compatibility area of the plugin directory before creating a support ticket. It is highly demotivating for me to see the plugin downloads drop dramatically without being given the chance to help you!
|
78 |
+
|
79 |
+
= I love your plugin! What can I do to help? =
|
80 |
+
|
81 |
+
Creating and supporting this plugin takes up a lot of my free time, therefore I would highly appreciate it if you could take a couple of minutes to [write a review](http://wordpress.org/support/view/plugin-reviews/custom-post-widget). This will help other WordPress users to start using this plugin and keep me motivated to maintain and support it.
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 2.0.1 =
|
86 |
+
Updated Dutch translation file.
|
87 |
+
|
88 |
= 2.0 =
|
89 |
Fix for bug caused by the 'Advanced Custom Fields' plugin. Thanks to creativexperience for troubleshooting this issue.
|
90 |
Cleanup of lightbox popup, changed all instances of query_posts to get_post and get_posts.
|
91 |
Support for featured image in custom post widget area.
|
92 |
+
Changed shortcode button to reflect the new admin style of WordPress version 3.5.
|
93 |
|
94 |
= 1.9.8 =
|
95 |
Fix for error when using shortcode with the WPML plugin
|
168 |
|
169 |
== Upgrade Notice ==
|
170 |
|
171 |
+
= 2.0 =
|
172 |
+
You can now show the featured image for content block in the widget. Note that this new functionality might need some refinement.
|
173 |
+
The language files for DE, FR, PL and RU are missing some translation strings because of new functionality that has been added tot the plugin. Any help in updating the translations is highly appreciated!
|
174 |
|
175 |
|