Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • clinton olsen
    Participant

    I am using WordPress ver. 5.2.2. Trying to use the Shortcoder plugin to run some javascript code on a page. The javascript code is:

    <script type=”text/javascript” src=’http://utah.gov/pmn/meetingsJS.html?entityIds=227&publicBodyIds=&keywords=&widgetWidth=400&widgetHeight=300&borderWidth=1&listSize=50&meetingType=upcoming’></script&gt;

    I put this code in the Shortcoder plugin and create shortcode: [sc name="upcomingmeetings"]. I paste this onto the page using the code editor. Save the page, and view the page. But I am unable to see the results of the javascript. I have used this javascript on other non-wordpress websites that I have created and it has worked. Please let me know if you need other information. Thanks in advance.

    Hi Clinton,

    It works for me.

    Shortcoder does not manipulate the content. What you save is what you get.

    I modified the code you shared a bit. (used double quotes, and used https) and it works for me.

    <script type="text/javascript" src="https://utah.gov/pmn/meetingsJS.html?entityIds=227&publicBodyIds=&keywords=&widgetWidth=400&widgetHeight=300&borderWidth=1&listSize=50&meetingType=upcoming"></script>

    clinton olsen
    Participant

    Thanks for looking into the issue. I made the changes you suggested, and it is working .

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter