Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You cannot process shortcodes from plugins using JavaScript. It has to be done server side in post content. If you processed all the various models server side before serving the page, as you say, that would be a LOT of code. Your best choice would be to use Ajax to fetch the requested model each time a different one is needed. You can process shortcodes in Ajax callbacks by using do_shortcode(). As your Ajax callback would be creating the shortcode to “do”, you can specify whatever texturPath you want.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change innerHTML with plugin content’ is closed to new replies.