Snippet as image title is not rendered
-
If I use one of your code snippets as an image title, wordpress writes it literally (If I pput it into “”) or simply doesn’t render it if I remove the commas and try to add them scaped inside the snippet output.
This way, it takes the snippet as a string:
<img src="https://www.mydomain.com/wp-content/uploads/2016/01/man_working.png" title="[php snippet=13 param="var_name=dib_hombre"]" class = "home_imgs"/>
This way, it takes part of the snippet as a string:
<img src="https://www.mydomain.com/wp-content/uploads/2016/01/man_working.png" title=[php snippet=13 param="var_name=dib_hombre"] class = "home_imgs"/>
I guess it has something to do with the way WordPress preprocesses the IMG tag.
- The topic ‘Snippet as image title is not rendered’ is closed to new replies.