Remove Nested DIV markup
-
Hi,
I was wondering if it would be possible to remove the nested div structure when echo’ing a field?
When I use this call ….
<?php echo(types_render_field("sidebar-image", array("size"=>"side-thumb", "class"=>"side-thumb"))); ?>
This structure is produced in HTML ….
<div id="wpcf-field-sidebar-image" class="wpcf-field-image wpcf-field-sidebar-image"> <div class="wpcf-field-value wpcf-field-image-value wpcf-field-sidebar-image-value"> <img width="336" height="229" src="wp-content/uploads/2013/03/myimage.png" class="attachment-side-thumb side-thumb" alt="" style="" title="" /> </div> </div>
This seems like a lot of markup to display a single image. Any help appreciated, thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove Nested DIV markup’ is closed to new replies.