Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the same problem. And unfortunately my entire site depends on this plugin working….Please fix asap!

    Unfortunately, there cannot be a fix as far as I know. The WordPress update didn’t break the plugin. The WordPress update changed allowable shortcode behavior, and no change to the plugin can get around that.
    https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/

    I’ll use my site as an example. I was using shortcodes to dynamically populate some form fields like so:

    <input type="hidden" value="123" id="webFormId" name="webFormId">
    <input type="hidden" id="RAccess" name="RAccess" value="[js_get_access]">
    <input type="hidden" id="SalesRep" name="SalesRep" value="[js_get_sales_rep]">

    For security reasons, WordPress is no longer allowing a shortcode to populate an HTML value in this way. To get around it, I had to make the shortcode return the entire line of HTML, including the value. Now my form code looks like this:

    <input type="hidden" value="123" id="webFormId" name="webFormId">
    [js_get_access]
    [js_get_sales_rep]

    This method works. I don’t know the specific way in which you’re using shortcodes, but odds are that you’re going to have to change it, because the plugin must play by WordPress’ rules.

    We had the same problem. If you don’t want to change the shortcode in the way hunsford suggests, it looks as though you have to explicitly allow the shortcode expansion in the input.

    See
    http://wordpress.stackexchange.com/questions/195665/why-do-shortcode-is-not-executing-the-shortcode-in-data-html-attributes/195673#195673

    This advises putting the following in functions.php

    add_filter( ‘wp_kses_allowed_html’, function ( $allowedposttags, $context ) {
    if ( $context == ‘post’ ) {
    $allowedposttags[‘a’][‘data-abc’] = 1;
    }
    return $allowedposttags;
    }, 10, 2 );

    This has worked for us.

    i would like to add a automatic counter on form submission. Please let me know on the same

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode on content not working after WordPress 4.2.3 update’ is closed to new replies.