Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] repeating field for images problem

$
0
0

I thought something like this would work but it does not?

<?php
$args = array('post_type' => 'attachment', 'meta_query' => array('relation' => 'AND', array('key' => 'wpcf-home-banner-img')));

$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div>
<?php echo(types_render_field('home-banner-img', 'array( "arg1" => "val1", "arg2" => "val2" ) ')); ?>

</div>
<?php endforeach; ?>


Viewing all articles
Browse latest Browse all 20145

Trending Articles