Support » Plugin: WP Job Manager » Allow JS in listing content

  • Resolved Nazar Hotsa


    Looks like WPJM doesn’t “like” JS snippets in listing body since version 1.31.1
    Is there a neat way to change this behavior? We use some specific JS snippets in listings and those break after updating from 1.31.0 to 1.31.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello
    Can you give an example?

    Because we can not help you with it without see it.


    Here is an example of a snippet we have in listing content:

    var str = "Thu, 07 Mar 2019 06:01:42 GMT";
    var res = str.slice(5, 17);
    var date = res;
    document.getElementById("demo").innerText = date;

    In version 1.31.0 everything works as expected, however, once we update to 1.31.1 – the above snippet is getting displayed as plain text on the listing page.

    Hello @bugnumber9 ,

    Where do you add your custom code?

    It is strange it is displaying as plain text.


    Plugin Contributor Richard Archambault


    As kibus90 asked, how is this being added? Are you manually editing the jobs to add it?

    Plugin Contributor Richard Archambault


    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow JS in listing content’ is closed to new replies.