Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • This did it! you’re awesome. I’ve added a review, but is there any other way I can support your development and show my gratitude?

    Best regards,
    Mattis

    Hi LuckyWP,

    the Devs from BB have added the “fl_builder_after_render_shortcodes” hook. I have the new commit installed.

    +++ here’s the newly created hook +++
    /**
    * After render content
    * @see fl_builder_after_render_content
    */
    do_action( ‘fl_builder_after_render_content’ );
    $content = ob_get_clean();

    // Allow the builder’s render_content filter to run again.
    remove_filter( ‘fl_builder_do_render_content’, ‘__return_false’ );

    // Process shortcodes.
    if ( apply_filters( ‘fl_builder_render_shortcodes’, true ) ) {
    global $wp_embed;
    $content = apply_filters( ‘fl_builder_before_render_shortcodes’, $content );
    $pattern = get_shortcode_regex();
    $content = preg_replace_callback( “/$pattern/s”, ‘FLBuilder::double_escape_shortcodes’, $content );
    $content = $wp_embed->run_shortcode( $content );
    $content = do_shortcode( $content );
    $content = apply_filters( ‘fl_builder_after_render_shortcodes’, $content );
    }
    ++++

    Could you adapt your plugin to use that hook instead of the “before” hook, as long as the “after” hook is available (not released to the public yet).

    That would be great and may solve the issue.

    Best regards

    Mattis

    Hi LuckyWP,

    I’ve reached out to the Beaver Builder Support team, and they came back with the following idea:
    +++++
    One of our devs offered the native shortcode filter that WordPress offers. Can you give the link below to the plugin author and see if it works for him? 🙂
    https://developer.wordpress.org/reference/hooks/do_shortcode_tag/
    +++++
    Can you let me know if this is something that works for you?

    Best regards
    Mattis

    Thanks LuckyWP for your quick response again. I’ll be in touch with the BB Team and let you know about any developments/approaches from their side.

    Best regards
    Mattis

    Hi LuckyWP,

    awesome, thank you for your efforts. Now I can see the TOC, but it displays the wrong headers, and I have an assumption why.

    1. I have values stored in ACF repeater fields (for example one repeater row per product).
    2. Within the Themer Layout, I use the “Custom Content Shortcode” Plugin (https://wordpress.org/plugins/custom-content-shortcode/) to reference and loop over these ACF-Repeater Fields and render the HTML per repeater row.
    3. It appears that your plugin is not handling that yet, so I only get the headline {{PRODUCT_NAME}} once instead of a heading per Product with the product name.

    Is there anything you or I could do about that?

    Again, thanks for your great efforts and best regards
    Mattis

    Hi LuckyWP,

    one main component I forgot to mention. The content on the Post doesn’t come from the regular “Post Content” field, but rather from many different Fields created through “Advanced Custom Fields”, which are tied together by within the Themer Layout. Could that be a reason?

    In order to try if this is an issue, I set the “Minimal Count of Headers” Setting to 0, so I would expect to see at least the “Contents” header.

    Best regards
    Mattis

    Hi LuckyWP,

    thanks for your quick response. I already had this enabled for posts and pages. I am also in contact with the Beaver Themer Report. They’d like me to ask you: How does your plugin grab the headings from the page? The themer layouts itself works on the main query so it’s similar to just placing the shortcode on the post itself.

    I’ve also tried removing multiple instances of referencing the shortcode so I’m only left with one Table of Contents which should now appear above the “Quick Navigation”, but that didn’t change anything either.

    Would love to hear from you again.

    Best regards
    Mattis

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