Changeset 517828
- Timestamp:
- 03/12/2012 09:21:35 AM (14 years ago)
- File:
-
- 1 edited
-
custom-fields-creator/trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-fields-creator/trunk/readme.txt
r512346 r517828 3 3 Contributors: reflectionmedia, madalin.ungureanu 4 4 Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/ 5 Tags: custom field s creator, meata boxes, repeater fields, ajax, post meta, custom fields, repeater5 Tags: custom field, custom fields, custom fields creator, meta box, meta boxes, repeater fields, post meta, repeater 6 6 Requires at least: 3.1 7 7 Tested up to: 3.3.1 8 Stable tag: 1.0 8 Stable tag: 1.0.1 9 9 10 WCK Custom Fields Creator allows you to easily create custom meta boxes for WordPress without any programming knowledge. It supports repeater fields and uses AJAX to handle data.10 WCK Custom Fields Creator - easily create custom meta boxes for WordPress. It supports normal custom fields and custom fields repeater groups. 11 11 12 12 == Description == 13 13 14 WCK Custom Fields Creator offers an UI for setting up custom meta boxes for your posts, pages or custom post types. 14 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. 15 15 16 Features: 16 == Features == 17 17 18 * Support for Repeater Fields. 18 * Easy to create custom fields for any post type. 19 * Support for Repeater Fields and Repeater Groups. 19 20 * Drag and Drop to sort the Repeater Fields. 20 21 * Support for all input fields: text, textarea, select, checkbox, radio. 21 22 * Image / File upload supported via the WordPress Media Uploader. 22 * Possibility to target only certain page-templates, target certain custom post types and even unique ID s.23 * Possibility to target only certain page-templates, target certain custom post types and even unique ID's. 23 24 * All data handling is done with ajax 24 25 * Data is saved as postmeta 26 27 = Website = 28 http://www.cozmoslabs.com/wordpress-creation-kit/ 29 30 = Announcement Post and Video = 31 http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/ 32 33 = Documentation = 34 http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/ 35 36 = Bug Submission and Forum Support = 37 http://www.cozmoslabs.com/forums/forum/wordpresscreationkit/ 38 39 = Please Vote and Enjoy = 40 Your votes really make a difference! Thanks. 41 42 25 43 26 44 == Installation == … … 32 50 == Frequently Asked Questions == 33 51 34 = How do I display the contents of the meta boxin the frontend? =52 = How do I display my custom fields in the frontend? = 35 53 36 Let s consider we have a meta box with the following arguments:54 Let's consider we have a meta box with the following arguments: 37 55 - Meta name: books 38 56 - Post Type: post 39 And we also have two fields def fined:40 - A text field with the Field Title: Book name41 - And another text field with the Field Title: Author name57 And we also have two fields defined: 58 - A text custom field with the Field Title: Book name 59 - And another text custom field with the Field Title: Author name 42 60 43 You will notice that slugs will automatically be created for the two text fields. For Book name the slug will be book-name and for Author name the slug will be author-name61 You will notice that slugs will automatically be created for the two text fields. For 'Book name' the slug will be 'book-name' and for 'Author name' the slug will be 'author-name' 44 62 45 Let s see what the code for displaying the meta box values in single.php of your theme would be:63 Let's see what the code for displaying the meta box values in single.php of your theme would be: 46 64 47 65 `<?php $books = get_post_meta( $post->ID, 'books', true ); 48 66 foreach( $books as $book){ 49 echo $book['book-name'] ;50 echo $book['author-name'] ;67 echo $book['book-name'] . '<br/>'; 68 echo $book['author-name'] . '<br/>'; 51 69 }?>` 52 70 53 So as you can see the Meta Name books is used as the $key parameter of the funtion get_post_meta() and the slugs of the text fields are used as keys for the resulting array. Basically CFC stores the entries as post meta in a multidimensioanl array. In our case the array would be:71 So as you can see the Meta Name 'books' is used as the $key parameter of the function get_post_meta() and the slugs of the text fields are used as keys for the resulting array. Basically CFC stores the entries as custom fields in a multidimensional array. In our case the array would be: 54 72 55 73 `<?php array( array( "book-name" => "The Hitchhiker's Guide To The Galaxy", "author-name" => "Douglas Adams" ), array( "book-name" => "Ender's Game", "author-name" => "Orson Scott Card" ) );?>` … … 58 76 59 77 == Screenshots == 60 1. List of Meta boxes: screenshot-1.jpg 61 2. Meta box arguments: screenshot-2.jpg 62 3. Meta box fields: screenshot-3.jpg 63 4. Some defined fields: screenshot-4.jpg 78 1. List of Meta boxes 79 2. Meta box arguments 80 3. Meta box with custom fields 81 4. Some defined custom fields 82 83 == Changelog == 84 85 = 1.0.1 = 86 * Added link to website and documentation in readme. 87 * Added link to support forum in readme. 88 * Other small readme improvments.
Note: See TracChangeset
for help on using the changeset viewer.