!--For example if this is a slide-->!--? php if (have_posts ()): The_post ();?-->
!--? php $images = Get_post_meta ($post--->id, ' images ', false); One more custom field you want to add images if ($images) {//start loop with the same name as the custom field foreach ($images as $image) { $fullvalue = Explode ("|", $image); $post _img= $fullvalue [0]; Image address $post _url= $fullvalue [1]; The picture corresponds to the article address $img _info= $fullvalue [2];
Picture information?>!--Start exporting custom fields-->
- !--slide picture--> href= "!--? php echo $post _url?--" > "alt=" !--? php the_title (),?--> "title="!--? php the_title (),?-->/>!--slide title-->!--? php echo $img _info? ->!--End img_conent-->
!--? php}//end foreach} endif ?-->
This is the example of the slide show code, you can modify the style you want on this basis, loop output
http://www.bkjia.com/PHPjc/477221.html www.bkjia.com true http://www.bkjia.com/PHPjc/477221.html techarticle !--For example if this is a slide--div class=flexslider? php if (have_posts ()): The_post ();? ul class=slides? php $images = Get_po St_meta ($post-id, images, false); A ...