Support » Plugin: WordPress Image SEO » %name variable not working – but %title is!

Viewing 1 replies (of 1 total)
  • Thread Starter son0fhobs

    (@son0fhobs)

    I realized that it had to do with variables at the end of the image – I think.
    The only images in which this was an issue is when it has something like… “uploads/academy.jpg?nocache” Specifically the “?nocache” at the end. I’m assuming that’s messing with the regular expression.

    Also, if there is no image name, it might be helpful to have the plugin removed the “%name” variable. More specifically in the code after the:

    if(isset($source[0])){
    Include an
    else{$alttext_rep = str_replace("%name", "", $alttext_rep);
    Or something like that.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘%name variable not working – but %title is!’ is closed to new replies.