WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Title attribute on repeating image (3 posts)

  1. crdunst
    Member
    Posted 1 year ago #

    Hi,

    I have a repeating image field used to upload different accreditation logos to properties (custom post type).

    I'm outputting the logos in my template like this at the moment:

    $params = array(
    	'raw'		=> 'false',
    	'show_name'	=> 'false'
    );
    echo types_render_field("my-repeating-image-field",$params);

    My problem is that the outputted images are not pulling in the title from WP media library, and I can't figure out how to make them do so.

    I know I can specify a 'title' in my params array, but this wouldn't be configurable from the CMS, and it would be the same for each image in my repeat image.

    Is there any way you know of to retrieve the title from the media gallery for each image?

    Thanks

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

  2. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi crdunst,

    Right now it is not possible. We will include this features in Types 1.3

    [ Signature moderated. ]

  3. crdunst
    Member
    Posted 1 year ago #

    No problem, thanks for getting back to me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic