• Resolved studioavanti

    (@studioavanti)


    Hello,

    Thank you for sharing this very handy plugin!

    One thing’s not working for me though on sites using Beaver Builder (BB) and Beaver Themer (BT):

    • The BB Post Type (fl-builder-template / Templates) producing templates and saved items is accessible to Shortcodes Finder
    • The BT Post Type (fl-theme-layout) producing templates layouts is not

    I guess the BT Post Type has specific settings (not public…?) preventing Shortcodes Finder to access it… what could be done to make the BT Post Type accessible?

    Thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter studioavanti

    (@studioavanti)

    I can confirm Shortcodes Finder doesn’t see Beaver Themer Post Type because it’s not public.

    This PHP action makes it accessible to Shortcodes Finder:

    add_action('register_post_type_args', function ($args, $postType) {
        if ($postType !== 'fl-theme-layout'){
            return $args;
        }
    
       $args['public'] = true;
    
        return $args;
    }, 99, 2);
    Plugin Author Scribit

    (@scribit)

    Hello @studioavanti and thanks for your feedback.

    I’m happy you have found a solution for your problem.
    I don’t know Beaver Themer plugin but I think that Shortcodes Finder should not interfere with another object visibility (in this case its theme layouts), preventing it from interfering with other plugin features.

    Maybe it is better to let developer fix it by adding the filter you suggested.
    What do you think?

    Thread Starter studioavanti

    (@studioavanti)

    Hi @scribit,

    Thanks for your answer.

    I think you’re right, Shortcodes Finder shouldn’t modify 3rd party CPT settings.
    The custom action above works fine by temporarily making BT Post Type public and accessible to Shortcode Finder and once the job done, i’ll disable it.

    FYI, Beaver Themer is a Theme Builder to create dynamic templates for Header, Footer, Post Type Single, Archive… using Beaver Builder (page builder), which are saved as WP Custom Posts.
    https://www.wpbeaverbuilder.com/beaver-themer/

    These templates/Posts can include shortcodes to fetch dynamic data, the shortcodes i need Shortcodes Finder to detect.

    Plugin Author Scribit

    (@scribit)

    Thanks for the explanation!

    This post will be very useful for developers using your theme builder.
    However I don’t exclude I will include this behavior to the plugin in the future versions.

    Thanks again and give us a review if you want ??

    Thread Starter studioavanti

    (@studioavanti)

    My pleasure, thanks to you for the handy plugin!

    A detail i discovered along the way with Shortcodes Finder inspecting Beaver Builder posts: it doesn’t see shortcodes nested in the builder modules special inputs.
    Maybe because these data are saved in a specific way in the DB…

    • This reply was modified 2 years, 1 month ago by studioavanti.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search in Beaver Themer Post Type’ is closed to new replies.