WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
repeatable fields (1 post)

  1. alienfactory
    Member
    Posted 1 year ago #

    i have tried the sample code to get repeatable fields to show and the only thing that works is the code below but this only shows 1 image

    is there some code i can paste into my page template to get this to work

    Thanks
    Terry

    <?php
    $image_id = get_post_meta(get_the_ID(), "_simple_fields_fieldGroupID_1_fieldID_1_numInSet_0", true);
    $img_src = wp_get_attachment_url($image_id, 'thumbnail');
    ?>
    <img src="<?php echo $img_src ?>" alt="An image" />

    http://wordpress.org/extend/plugins/simple-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags