WordPress.org

Support

Support » How-To and Troubleshooting » IMG tag paramaters order in inserted image, need "scr" at the beginning.

IMG tag paramaters order in inserted image, need "scr" at the beginning.

  • When an image is inserted into a post with the new media manager, the <img> tag first lists the “class” and “alt” parameters before “scr”.

    This is causing a problem with my template, since it looks at the post content and uses the first image to generate a thumbnail in the front page. (Long story short, we use this mechanism because some of the collaborators in the blog, are newbies to WP and forget to use “set feature image”. So we made it simple for them).

    Does anyone know how to tweak the WordPress code in the new media manager, so it can put the “scr” parameter first in the <img> tag.

    Thanks,

    Gumer Boytano

Viewing 1 replies (of 1 total)
  • see its correctly,
    is scr or src
    <img scr ="" alt="" class=""/>

    its should be

    <img src =”” alt=”” class=”” />

Viewing 1 replies (of 1 total)
  • The topic ‘IMG tag paramaters order in inserted image, need "scr" at the beginning.’ is closed to new replies.
Skip to toolbar