• Hi guys, can someone tell me in which file the posts img tag gets created? I need to add a different path in the src.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    What exactly are you talking about? Posts are not stored in any files, they’re stored in the database.

    Thread Starter huntz

    (@huntz)

    When I post an image in a post, i need to edit the image tag thats parsed out on the page. lets just say i wanted to add a new atribute to every img tag in the posts, where would I have to go? Am I making sense lol?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You would go and edit the post and add whatever tags you want to it. In the post editor. Where you edit the post.

    I think I’m not fully understanding your question, because the answer seems extremely obvious. If you want to edit the img tag in a post, then you simply go to edit the post and edit it. What’s the problem?

    Thread Starter huntz

    (@huntz)

    I have an image script running. To get it to work I need to change the image tag inside the post thats displayed on the blog. When I view source on the homepage the image tag within the post would look something like <img src=”/image.php/image-name.jpg?width=100&height=100&image=/path/to/image.jpg” alt=”Don’t forget your alt text” />

    Does this make things any clearer?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Does this make things any clearer?

    No, because while that does tell me what it is that you want to do, I’m not understanding why you don’t know how to do it. The IMG tag you’re looking for is in the post itself.

    Go edit your post. Your post has that img tag in it. Edit it however you have to edit it.

    Do you not know how to edit posts or something? Why can’t you edit the img tag? What is the actual problem you are having?

    Thread Starter huntz

    (@huntz)

    Well what I’d like to do is get my script into all the image tags that already exist in all my posts and resize them. I thought for some reason that the image tag was contained in a script somewhere and I could maybe alter it to do this. I think I’m going to have to look into some sort of crazy pre parse script unless there is any other suggestions.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Ahh, no. The img tag is hard coded right into your post content.

    You could do some kind of search and replace on the database, I guess.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress files questions’ is closed to new replies.