IMG tag paramaters order in inserted image, need "scr" at the beginning. (2 posts)

  1. gumerboy
    Posted 3 years ago #

    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.


    Gumer Boytano

  2. viky081
    Posted 3 years ago #

    see its correctly,
    is scr or src
    <img scr ="" alt="" class=""/>

    its should be

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

Topic Closed

This topic has been closed to new replies.

About this Topic