WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Display Image (4 posts)

  1. Amit Kvint
    Member
    Posted 1 year ago #

    Hi there,

    Have just installed Types so am very green...

    So I have created a customs post type called speakers on my admin with custom fields, one of them being an image called speaker-img, on the dashboard all appears to work perfectly, than trying to show that image on my page (a template page called 'homepage') nothing is being showed what am I missing ? here is the code I have put -
    test<?php echo(types_render_field("speaker-img")); ?>('test' does appear btw).

    Thanks

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

  2. Srdjan
    Member
    Plugin Author

    Posted 1 year ago #

    Please check our documentation at wp-types com.

  3. Taylor
    Member
    Posted 10 months ago #

    You documentation lacks to say the least for non-savvy coders. I've been looking for this answer for an hour and still can't figure out.

  4. Srdjan
    Member
    Plugin Author

    Posted 10 months ago #

    Hi, sorry about that - we're working on documentation to improve it.

    You can use this call to render field on frontend:
    echo types_render_field("custom-field-slug-name");
    Specify field name without 'wpcf-' prefix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic