WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Simple Fields] Display randomly

[Plugin: Simple Fields] Display randomly

Viewing 1 replies (of 1 total)
  • I actually found the solution to my own question. Here it is for everyone else.

    $features = simple_fields_get_post_group_values(get_the_ID(), 3, true, 2);
    shuffle($features);
    
    for($i = 0; $i < count($features); $i++) {
    
    	if($i < 2) {
    
    		echo wp_get_attachment_image($features[$i]['Billede'];
    
    	}
    
    }

    Cheers
    Vayu

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Simple Fields] Display randomly’ is closed to new replies.