Fuxy's WP Images 2 Posts
how to enter image size? (2 posts)

  1. cpokladnik
    Posted 3 years ago #

    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'].'" />';


  2. Teratoma
    Posted 3 years ago #

    I know this is really not a solution, just my two cents, but it looks like this part of the plugin hasn't been developed yet. You've no doubt noticed the dropdown for image size doesn't offer an actual choice, so I'm assuming this is still being worked on.

    Sorry I can't be of more assistance. Your code looks like it would work, if only the interface gave us a way to actually enter those values.

    I'm making a post after this that will address this and other things I'd like to see - this plugin is really quite useful already and it looks like it's being maintained/updated regularly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Fuxy's WP Images 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.