Plugin Directory

Changeset 517828


Ignore:
Timestamp:
03/12/2012 09:21:35 AM (14 years ago)
Author:
reflectionmedia
Message:

readme improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • custom-fields-creator/trunk/readme.txt

    r512346 r517828  
    33Contributors: reflectionmedia, madalin.ungureanu
    44Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/
    5 Tags: custom fields creator, meata boxes, repeater fields, ajax, post meta, custom fields, repeater
     5Tags: custom field, custom fields, custom fields creator, meta box, meta boxes, repeater fields, post meta, repeater
    66Requires at least: 3.1
    77Tested up to: 3.3.1
    8 Stable tag: 1.0
     8Stable tag: 1.0.1
    99
    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.
     10WCK Custom Fields Creator - easily create custom meta boxes for WordPress. It supports normal custom fields and custom fields repeater groups.
    1111 
    1212== Description ==
    1313
    14 WCK Custom Fields Creator offers an UI for setting up custom meta boxes for your posts, pages or custom post types.
     14WCK 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.
    1515
    16 Features:
     16== Features ==
    1717
    18 * Support for Repeater Fields.
     18* Easy to create custom fields for any post type.
     19* Support for Repeater Fields and Repeater Groups.
    1920* Drag and Drop to sort the Repeater Fields.
    2021* Support for all input fields: text, textarea, select, checkbox, radio.
    2122* 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.
    2324* All data handling is done with ajax
    2425* Data is saved as postmeta
     26
     27= Website =
     28http://www.cozmoslabs.com/wordpress-creation-kit/
     29
     30= Announcement Post and Video =
     31http://www.cozmoslabs.com/3747-wordpress-creation-kit-a-sparkling-new-custom-field-taxonomy-and-post-type-creator/
     32
     33= Documentation =
     34http://www.cozmoslabs.com/wordpress-creation-kit/custom-fields-creator/
     35
     36= Bug Submission and Forum Support =
     37http://www.cozmoslabs.com/forums/forum/wordpresscreationkit/
     38
     39= Please Vote and Enjoy =
     40Your votes really make a difference! Thanks.
     41
     42
    2543
    2644== Installation ==
     
    3250== Frequently Asked Questions ==
    3351
    34 = How do I display the contents of the meta box in the frontend? =
     52= How do I display my custom fields in the frontend? =
    3553
    36 Let’s consider we have a meta box with the following arguments:
     54Let's consider we have a meta box with the following arguments:
    3755- Meta name: books
    3856- Post Type: post
    39 And we also have two fields deffined:
    40 - A text field with the Field Title: Book name
    41 - And another text field with the Field Title: Author name
     57And 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
    4260
    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-name”
     61You 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'
    4462
    45 Let’s see what the code for displaying the meta box values in single.php of your theme would be:
     63Let's see what the code for displaying the meta box values in single.php of your theme would be:
    4664
    4765`<?php $books = get_post_meta( $post->ID, 'books', true );
    4866foreach( $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/>';
    5169}?>`
    5270
    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:
     71So 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:
    5472
    5573`<?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" ) );?>`
     
    5876
    5977== 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
     781. List of Meta boxes
     792. Meta box arguments
     803. Meta box with custom fields
     814. 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.