• My accordions no longer collapse.

    The error regards this section of the js code, esp the </p><p> area (line175):
    class=”post-entry”><p><script>/*<![CDATA[*/jQuery(document).ready(function($)
    {</p><p>$(“#accordions-1710.accordions”).accordion({collapsible:true,heightStyle:”content”,animated:

    Running WP version 4.2.2 and Accordions version 2.0.3

    I should add that I had to use php within a page b/se the shortcode would not work – it used to work, but won’t now (i deactivated all plugins to test and it persisted). I am using insert php plugin to accomplish this. The code is formatted this way:

    [insert_php]
    echo do_shortcode(“[accordions id=’1710′]”);
    [/insert_php]

    https://wordpress.org/plugins/accordions/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cq

    (@cq)

    ooops, I meant WP version 4.4.2

    This might be wpautop(); issue
    I can see <p> inside scripts tags.

    Can you please make demo page and paste the shortcode only inside content [accordions id='1710'] and see the result.

    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SyntaxError: expected expression, got '’ is closed to new replies.