• Resolved PlanoBrickHouse

    (@planobrickhouse)


    When using your shortcode I’m getting an error with the Unyson framework. I believe the shortcodes are clashing. It has trouble when hitting the “foreach” line below. Is there an easy way for me to change your shortcode?

    Thank you,
    House – Donor

    /** @var FW_Extension_Shortcodes $shortcodes */
    $shortcodes = fw_ext(‘shortcodes’);

    $coder = $shortcodes->get_attr_coder(‘json’);

    foreach ($attr[‘table’][‘rows’] as $ri => $row) {
    if (‘button-row’ !== $row[‘name’]) {
    continue;
    }

    foreach ($attr[‘table’][‘content’][$ri] as $row) {
    if (!isset($row[‘button’])) {
    return;
    }

    $atts_string = ”;
    foreach (
    $coder->encode($row[‘button’], $this->get_button_shortcode_tag(), 0)
    as $attr_name => $attr_val
    ) {
    $atts_string .= $attr_name .’=”‘. $attr_val .'” ‘;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This code doesn’t really ring a bell, and I don’t see how this relates to TablePress.
    Is that framework also offering a [table] Shortcode? If so, you could instruct TablePress to use a different one: https://tablepress.org/extensions/table-shortcode/

    Regards,
    Tobias

    Thread Starter PlanoBrickHouse

    (@planobrickhouse)

    Changing the short fixed the issue! Thank you very much for the handy plugin. I had screen shots, but I couldn’t upload them here.

    Thanks again,
    House

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘Unyson Framework Conflict’ is closed to new replies.