WordPress.org

Forums

Programmatically switch "Title" and "Alt" text values in WordPress images (4 posts)

  1. nessup
    Member
    Posted 4 years ago #

    Hi there,

    I have hundreds of images in my WP for which I would like to switch the values of alt and title. I'm aware that the best way to do this would be via an SQL query, but coding one is far beyond my comprehension currently. Is there anyone out there who can code it? Or is there another way to do this?

    Thanks!

  2. nessup
    Member
    Posted 4 years ago #

    Another hacky way of doing this that I just thought of is forcing wordpress to output a value for the alt tag that originally was meant for the title tag, but of course this method would not survive subsequent updates of the software.

    Any ideas still?

  3. nessup
    Member
    Posted 4 years ago #

    Anyone?

  4. nessup
    Member
    Posted 4 years ago #

    Ping?

Topic Closed

This topic has been closed to new replies.

About this Topic