WordPress.org

Forums

Types
[resolved] How to include all fields in group in post (3 posts)

  1. mangoman
    Member
    Posted 2 years ago #

    I'd like to have all fields in the group displayed. Currently I am adding the code according to your Types Fields API for each field (see example below) to render each field, but I cannot locate documentation to create 1 line of code for an entire group.

    Please let me know if this is possible & what code would be most efficient to render a Types group of fields.

    ===== Also please note: According to another post in this forum - sorry, I lost the post link - your documentation needs updating on the following 2 pages:

    http://wp-types.com/documentation/functions/
    and
    http://wp-types.com/documentation/user-guides/displaying-wordpress-custom-fields/#1

    Current *incorrect* code:
    <?php echo(types_render_field( "field-slug", array( "arg1" => "val1", "arg2" => "val2" ) )); ?>

    Current *correct* code (for each custom field):
    <?php echo(types_render_field("sitio", array("show_name"=>"true","output"=>"html"))); ?>

    Thanks.

    http://wordpress.org/extend/plugins/types/

  2. mbigul
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mangoman,

    Sorry this feature is not supported in Types now. We are considering it in future.

    [ Signature moderated. ]

  3. mangoman
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic