Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Vova

    (@gn_themes)

    Hi @nanowisdoms,

    add the following snippet to the end of the functions.php file of your active theme:

    update_option( 'su_option_do_nested_shortcodes_alt', true, false );

    Plugin Author Vova

    (@gn_themes)

    Alternatively, you can use the correct syntax for nested shortcodes.

    Use [_/su_accordion] instead of [__/su_accordion], and [_su_spoiler] instead of [__su_spoiler]. There should not be double underscores, only single.

    In this case, you should not use the PHP snippet above.

    • This reply was modified 6 years, 6 months ago by Vova.
    Thread Starter NanoWisdoms

    (@nanowisdoms)

    I am using the correct syntax. Please see the link above. All my code is there. It worked fine until 5.0.4. Others, using the correct syntax, also reported no problems until v5.0.4 also.

    Did you change the syntax from v5.0.3 to v5.0.4?

    FYI here is my syntax from v5.0.3.

    2018-06-04_0005

    And here is the result (not working in v5.0.4 – v5.0.6):

    2018-06-03_2357

    Here is it working in 5.0.3:

    2018-06-04_0040

    • This reply was modified 6 years, 6 months ago by NanoWisdoms.
    • This reply was modified 6 years, 6 months ago by NanoWisdoms.
    • This reply was modified 6 years, 6 months ago by NanoWisdoms.
    Plugin Author Vova

    (@gn_themes)

    Plugin Author Vova

    (@gn_themes)

    Syntax with double underscores was invalid. It worked prior to v5.0.4. That was totally my fault and now it’s fixed.

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    Look closely again. That is a 3rd level nested accordion. It worked fine in 5.0.3.

    3rd level needed two _ not one _.

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    So then how do you do 3rd level nested accordion if it was invalid?

    Plugin Author Vova

    (@gn_themes)

    3-level nesting was never supported, it was working by an accident. If you need this feature (but it’s not a feature, I never planned to use it in this way) just add update_option call.

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    Ok thanks, I will do that.

    I think you should officially support it. The code already works and it’s very useful. Many are using it and there’s really no need to restrict it 2 levels.

    Thread Starter NanoWisdoms

    (@nanowisdoms)

    Ok after much testing here’s what works and what doesn’t.

    What works in v5.0.6:

    • Add the following snippet to the end of the functions.php file of your active theme:
      update_option( 'su_option_do_nested_shortcodes_alt', true, false );

      WITH

    • double underscores for 3rd level nesting (as in v5.0.3).

    In other words, by adding this line of PHP AND keeping everything as it was in v5.0.3 (i.e. double underscores for 3rd level nesting), v5.0.6 works like v5.0.3.

    What doesn’t work:

    • Anything else.

    Nothing else works because the developer says 3rd level nesting was never supported and just a “mistake”. In my view, a very happy and useful mistake that should be officially supported.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Nested accordions STILL not working properly in v5.0.6’ is closed to new replies.