use any url in gallery shortcode
-
This is how $result output:
source=”media:http://page.no/wp-content/uploads/2016/01/ringve-museumfpprojslideimg2-1.jpg,http://page.no/wp-content/uploads/2016/01/ringve-museumfpprojslideimg.jpg”This is my code
<?php $result = types_render_field("prosjektbilder", array("raw"=>"true","separator"=>",", "get_id"=>"true")); $result_shortcode = '[su_custom_gallery source="media:'.$result.'" link="lightbox" width="150" height="150" title="never"][su_custom_gallery link="lightbox" width="80" height="80" title="never"][/su_custom_gallery]'; /* echo do_shortcode( .'$result_shortcode'. ); */ echo $result_shortcode; ?>Anyone know how I can use this shortcode with image urls?
The topic ‘use any url in gallery shortcode’ is closed to new replies.