[Plugin: Fuxy's WP Images 2 Posts] how to enter image size?
-
basically I want the images that are inserted into the post to have the code that designates their width and height… I used width=”100%” height=”100%” but that is not working how I would like it to… I really each image to have their respective width and height tide to it.
I narrowed it down to this but unfortunately my abilities stop there :-/
please help
{
$att = wp_get_attachment_image_src( $att_ID, $_POST[‘itp_image_size’] );
$image = ‘<img src=”‘.$att[0].'” alt=”” title=”” class=”‘.$_POST[‘itp_url_align’].'” />’;
}to look like this
{
$att = wp_get_attachment_image_src( $att_ID, $_POST[‘itp_image_size’] );
$image = ‘<img src=”‘.$att[0].'” alt=”” width=”actual width of image” height=”actual height of image” title=”” class=”‘.$_POST[‘itp_url_align’].'” />’;
}
- The topic ‘[Plugin: Fuxy's WP Images 2 Posts] how to enter image size?’ is closed to new replies.