Custom Post Types and Custom Fields creator – WCK - Version 1.0.7

Version Description

  • Small compatibility tweaks for WordPress 3.8
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 Custom Post Types and Custom Fields creator – WCK
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === WCK - Custom Fields and Custom Post Types Creator ===
2
 
3
  Contributors: reflectionmedia, madalin.ungureanu, sareiodata
4
- Donate link: http://www.cozmoslabs.com/wordpress-creation-kit-sale-page/
5
- Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, repeater fields, repeater, repeatable, meta box, meta boxes, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
- Tested up to: 3.7.1
9
- Stable tag: 1.0.6
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
@@ -15,49 +15,51 @@ A must have tool for creating custom fields, custom post types and taxonomies, f
15
 
16
  **WordPress Creation Kit** consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
17
 
18
- **WCK Custom Fields Creator** offers an UI for setting up custom meta boxes for your posts, pages or custom post types. Uses standard custom fields to store data.
19
 
20
  **WCK Custom Post Type Creator** facilitates creating custom post types by providing an UI for most of the arguments of register_post_type() function.
21
 
22
  **WCK Taxonomy Creator** allows you to easily create and edit custom taxonomies for WordPress without any programming knowledge. It provides an UI for most of the arguments of register_taxonomy() function.
23
 
 
 
24
  = Custom Fields =
25
  * Custom fields types: wysiwyg editor, upload, text, textarea, select, checkbox, radio
26
  * Easy to create custom fields for any post type.
27
- * Support for **Repeater Fields** and **Repeater Groups**.
28
  * Drag and Drop to sort the Repeater Fields.
29
- * Support for all input fields: text, textarea, select, checkbox, radio.
30
  * Image / File upload supported via the WordPress Media Uploader.
31
  * Possibility to target only certain page-templates, target certain custom post types and even unique ID's.
32
- * All data handling is done with ajax
33
  * Data is saved as postmeta
34
 
35
  = Custom Post Types and Taxonomy =
36
  * Create and edit Custom Post Types from the Admin UI
37
  * Advanced Labeling Options
38
  * Attach built in or custom taxonomies to post types
39
- * Create and edit Custom Taxonomies from the Admin UI
40
- * Attach the taxonomies to built in or custom post types
41
 
42
  = WCK PRO =
43
- The [PRO version](http://www.cozmoslabs.com/wordpress-creation-kit/) offers:
44
 
45
- * Swift Templates - Build your front-end templates directly from the WordPress admin UI, without writing any PHP code
46
  * Front-end Posting - form builder for content creation and editing
47
  * Options Page Creator - create option pages for your theme or your plugin
48
- * More field types: Datepicker, Country Select, User Select
49
  * Premium Email Support for your project
50
 
51
- [See complete list of features](http://www.cozmoslabs.com/wordpress-creation-kit/)
52
 
53
  = Website =
54
- http://www.cozmoslabs.com/wordpress-creation-kit/
55
 
56
  = Announcement Post and Video =
57
  http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/
58
 
59
  = Documentation =
60
- http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/
61
 
62
  = Bug Submission and Forum Support =
63
  http://www.cozmoslabs.com/forums/forum/wordpresscreationkit/
@@ -95,7 +97,7 @@ So as you can see the Meta Name 'books' is used as the $key parameter of the fun
95
 
96
  This is true even for single entries.
97
 
98
- = How to query by post type in the front end? =
99
 
100
  You can create new queries to display posts from a specific post type. This is done via the 'post_type' parameter to a WP_Query.
101
 
@@ -112,7 +114,7 @@ endwhile;?>`
112
 
113
  This simply loops through the latest 10 product posts and displays the title and content of them.
114
 
115
- = How do I list the taxonomies in the front end? =
116
 
117
  If you want to have a custom list in your theme, then you can pass the taxonomy name into the the_terms() function in the Loop, like so:
118
 
@@ -120,7 +122,7 @@ If you want to have a custom list in your theme, then you can pass the taxonomy
120
 
121
  That displays the list of People attached to each post.
122
 
123
- = How do I query by taxonomy in the frontend? =
124
 
125
  Creating a taxonomy generally automatically creates a special query variable using WP_Query class, which we can use to retrieve posts based on. For example, to pull a list of posts that have 'Bob' as a 'person' taxomony in them, we will use:
126
 
@@ -129,16 +131,19 @@ Creating a taxonomy generally automatically creates a special query variable usi
129
  ==Screenshots==
130
  1. Creating custom post types and taxonomies
131
  2. Creating custom fields and meta boxes
132
- 3. List of Meta boxes
133
  4. Meta box with custom fields
134
  5. Defined custom fields
135
- 6. Meta box arguments
136
  7. Post Type Creator UI
137
  8. Post Type Creator UI and listing
138
  9. Taxonomy Creator UI
139
  10. Taxonomy listing
140
 
141
  == Changelog ==
 
 
 
142
  = 1.0.6 =
143
  * WCK menu now only appears for Administrator role only
144
  * Minor fixes and improvements
1
  === WCK - Custom Fields and Custom Post Types Creator ===
2
 
3
  Contributors: reflectionmedia, madalin.ungureanu, sareiodata
4
+ Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
5
+ Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
+ Tested up to: 3.8
9
+ Stable tag: 1.0.7
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
15
 
16
  **WordPress Creation Kit** consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
17
 
18
+ **WCK Custom Fields Creator** offers an UI for setting up custom meta boxes with custom fields for your posts, pages or custom post types. Uses standard custom fields to store data.
19
 
20
  **WCK Custom Post Type Creator** facilitates creating custom post types by providing an UI for most of the arguments of register_post_type() function.
21
 
22
  **WCK Taxonomy Creator** allows you to easily create and edit custom taxonomies for WordPress without any programming knowledge. It provides an UI for most of the arguments of register_taxonomy() function.
23
 
24
+ [youtube http://www.youtube.com/watch?v=_ueYKlP_i7w]
25
+
26
  = Custom Fields =
27
  * Custom fields types: wysiwyg editor, upload, text, textarea, select, checkbox, radio
28
  * Easy to create custom fields for any post type.
29
+ * Support for **Repeater Fields** and **Repeater Groups** of custom fields.
30
  * Drag and Drop to sort the Repeater Fields.
31
+ * Support for all input custom fields: text, textarea, select, checkbox, radio.
32
  * Image / File upload supported via the WordPress Media Uploader.
33
  * Possibility to target only certain page-templates, target certain custom post types and even unique ID's.
34
+ * All data handling is done with Ajax
35
  * Data is saved as postmeta
36
 
37
  = Custom Post Types and Taxonomy =
38
  * Create and edit Custom Post Types from the Admin UI
39
  * Advanced Labeling Options
40
  * Attach built in or custom taxonomies to post types
41
+ * Create and edit Custom Taxonomy from the Admin UI
42
+ * Attach the taxonomy to built in or custom post types
43
 
44
  = WCK PRO =
45
+ The [WCK PRO version](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/) offers:
46
 
47
+ * **Swift Templates** - Build your front-end templates directly from the WordPress admin UI, without writing any PHP code. Easily display registered custom post types, custom fields and taxonomies in your current theme.
48
  * Front-end Posting - form builder for content creation and editing
49
  * Options Page Creator - create option pages for your theme or your plugin
50
+ * More field types: Date-picker, Country Select, User Select, CPT Select
51
  * Premium Email Support for your project
52
 
53
+ [See complete list of PRO features](http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/)
54
 
55
  = Website =
56
+ http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/
57
 
58
  = Announcement Post and Video =
59
  http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/
60
 
61
  = Documentation =
62
+ http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/
63
 
64
  = Bug Submission and Forum Support =
65
  http://www.cozmoslabs.com/forums/forum/wordpresscreationkit/
97
 
98
  This is true even for single entries.
99
 
100
+ = How to query by post type in the front-end? =
101
 
102
  You can create new queries to display posts from a specific post type. This is done via the 'post_type' parameter to a WP_Query.
103
 
114
 
115
  This simply loops through the latest 10 product posts and displays the title and content of them.
116
 
117
+ = How do I list the taxonomies in the front-end? =
118
 
119
  If you want to have a custom list in your theme, then you can pass the taxonomy name into the the_terms() function in the Loop, like so:
120
 
122
 
123
  That displays the list of People attached to each post.
124
 
125
+ = How do I query by taxonomy in the front-end? =
126
 
127
  Creating a taxonomy generally automatically creates a special query variable using WP_Query class, which we can use to retrieve posts based on. For example, to pull a list of posts that have 'Bob' as a 'person' taxomony in them, we will use:
128
 
131
  ==Screenshots==
132
  1. Creating custom post types and taxonomies
133
  2. Creating custom fields and meta boxes
134
+ 3. Custom Fields Creator - list of Meta boxes
135
  4. Meta box with custom fields
136
  5. Defined custom fields
137
+ 6. Custom Fields Creator - Meta box arguments
138
  7. Post Type Creator UI
139
  8. Post Type Creator UI and listing
140
  9. Taxonomy Creator UI
141
  10. Taxonomy listing
142
 
143
  == Changelog ==
144
+ = 1.0.7 =
145
+ * Small compatibility tweaks for WordPress 3.8
146
+
147
  = 1.0.6 =
148
  * WCK menu now only appears for Administrator role only
149
  * Minor fixes and improvements
wck-cfc.php CHANGED
@@ -42,7 +42,7 @@ function wck_cfc_create_custom_fields_cpt(){
42
  );
43
  $args = array(
44
  'labels' => $labels,
45
- 'public' => true,
46
  'publicly_queryable' => false,
47
  'show_ui' => true,
48
  'show_in_menu' => 'wck-page',
42
  );
43
  $args = array(
44
  'labels' => $labels,
45
+ 'public' => false,
46
  'publicly_queryable' => false,
47
  'show_ui' => true,
48
  'show_in_menu' => 'wck-page',
wck-sas.php CHANGED
@@ -195,7 +195,8 @@ function wck_sas_check_serial_number(){
195
  return;
196
 
197
  $serial = get_option('wck_serial');
198
- $serial = $serial[0]['serial-number'];
 
199
  if(empty($serial) || $serial == '') {
200
  update_option( 'wck_serial_status', 'noserial' ); //server down
201
  } else {
195
  return;
196
 
197
  $serial = get_option('wck_serial');
198
+ if( !empty( $serial[0] ) )
199
+ $serial = urlencode( $serial[0]['serial-number'] );
200
  if(empty($serial) || $serial == '') {
201
  update_option( 'wck_serial_status', 'noserial' ); //server down
202
  } else {
wck.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Reflection Media, Madalin Ungureanu, sareiodata
6
- Version: 1.0.6
7
  Author URI: http://www.reflectionmedia.ro
8
 
9
  License: GPL2
@@ -118,7 +118,8 @@ $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
118
  if (file_exists ($wck_premium_update . 'update-checker.php')){
119
  require_once ($wck_premium_update . 'update-checker.php');
120
  (array)$wck_serial = get_option('wck_serial');
121
- $wck_serial = $wck_serial[0]['serial-number'];
 
122
  if(empty($wck_serial) || $wck_serial == '') $wck_serial = '';
123
 
124
  if (file_exists ( WCK_PLUGIN_DIR . '/wordpress-creation-kit-api/wck-fep/wck-fep.php' )){
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Reflection Media, Madalin Ungureanu, sareiodata
6
+ Version: 1.0.7
7
  Author URI: http://www.reflectionmedia.ro
8
 
9
  License: GPL2
118
  if (file_exists ($wck_premium_update . 'update-checker.php')){
119
  require_once ($wck_premium_update . 'update-checker.php');
120
  (array)$wck_serial = get_option('wck_serial');
121
+ if( !empty( $wck_serial[0] ) )
122
+ $wck_serial = urlencode( $wck_serial[0]['serial-number'] );
123
  if(empty($wck_serial) || $wck_serial == '') $wck_serial = '';
124
 
125
  if (file_exists ( WCK_PLUGIN_DIR . '/wordpress-creation-kit-api/wck-fep/wck-fep.php' )){
wordpress-creation-kit-api/wordpress-creation-kit.css CHANGED
@@ -1,7 +1,6 @@
1
  .wck-post-box{
2
  visibility:hidden;
3
  height:0;
4
- overflow:auto;
5
  }
6
 
7
  .mb-list-entry-fields li{
1
  .wck-post-box{
2
  visibility:hidden;
3
  height:0;
 
4
  }
5
 
6
  .mb-list-entry-fields li{
wordpress-creation-kit-api/wordpress-creation-kit.php CHANGED
@@ -602,7 +602,7 @@ class Wordpress_Creation_Kit{
602
 
603
  //datepicker
604
  wp_enqueue_script('jquery-ui-datepicker');
605
- wp_enqueue_style('jquery-style', plugins_url( '', dirname(__FILE__) ).'/assets/datepicker/datepicker.css');
606
 
607
  }
608
 
602
 
603
  //datepicker
604
  wp_enqueue_script('jquery-ui-datepicker');
605
+ wp_enqueue_style( 'jquery-style', plugins_url( '/assets/datepicker/datepicker.css', __FILE__ ) );
606
 
607
  }
608