0

I am using jQuery load(); to reload a div on event. The reloaded div contains shortcodes processing POST data.

The load(); method is not executing shortcodes when reloading, how can I process my shortcodes when reloading a div in WordPress?

function RGeneral(){
    locGen=window.location.href + " #Edit_General";
    (jQuery).ready(   
                   (jQuery)('#Edit_General').load(locGen)
                   )}

Currently, the div "#Edit_General" reloads with empty shortcodes when the function "RGeneral( )" is called.

Many thanks in advance

  • Can you post all of the functions related to this question? – Howard E Aug 06 '21 at 22:54
  • [How to load script with jquery.load()?](https://stackoverflow.com/a/5519840/16125139) – idfurw Aug 07 '21 at 01:24
  • Thanks for the comment @HowardE , That's all I'm working with. Basically I am running this function on an onclick="" HTML tag. It currently works but doesn't reprocess shortcodes, instead an empty shortcode is returned – user16409697 Aug 07 '21 at 09:51

0 Answers0