Why not work out the shortcode?

Well all the displays in
<img src="[ASSETS_PATH]img/icons/plus1.svg" alt="advantage">

and diva
<a href="#" style="background-image: url('[ASSETS_PATH]img/item2.jpg');"></a>
July 2nd 19 at 13:33
2 answers
July 2nd 19 at 13:35
I suspect that because of the single quotation marks '[ASSETS_PATH]img/item2.jpg'
not even if you push just the date attribute , it is also not working - Alexandra.Johns commented on July 2nd 19 at 13:38
July 2nd 19 at 13:37
You can try to swap the quotes style to write in single, and the path to the image in double. And do not bathe. display using shortcode function but this do_shortcode():
<a href="#" style="background-image: url('<?php echo do_shortcode being('[ASSETS_PATH]'); ?>img/item2.jpg');"></a>
so after all, in the admin editor all stripes , there php will not work and quotes swap won't work either - Alexandra.Johns commented on July 2nd 19 at 13:40

Find more questions by tags WordPress