Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rhewlif

    (@henryp)

    The target parameter wasn’t set up to handle shortcodes as I assumed this would probably remain constant in most use cases. But it’s easy enough to do.

    In therm_shortcode.php, search for the target value section (around line 100) and this ‘if loop’ in the last else statement.

    // if shortcode present
    if (!is_numeric(str_replace(",", ".", $atts['target'])) && (strpos($atts['target'], ';') === false) && !is_numeric(str_replace(',','',$atts['target']))) {
    $shortcode = "[".strval($atts['target'])."]";
    $atts['target'] = do_shortcode( $shortcode);
    }

    Use the raised value section underneath as a guide. The two different shortcodes should then be parsed ok.

    I can include this in the next plugin update, as it could be useful for others.

    Thread Starter Nductiv

    (@nductiv)

    I’ll hang loose till the next plugin update.

    BTW – you are totally awesome for responding so quickly and thoroughly! Just sent you a donation.

    Plugin Author rhewlif

    (@henryp)

    That’s awesome, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Embedded Shortcodes – more than one causes error’ is closed to new replies.