• piotrlukanko

    (@piotrlukanko)


    Is there a way to insert search block using shortcode?

    Haven’t found any information about it in documentation and guides.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ponopress

    (@ponopress)

    Hello @piotrlukanko ,

    Thank you for your patience with our delayed response. Apologies for the late reply—our hosting had expired, preventing the support email from coming through.

    Regarding the shortcode, the plugin currently does not provide one, as we designed it to be fully compatible with the Site Editor/Gutenberg.

    If you’re looking to implement it via code, you can use the do_blocks function like this:

    echo do_blocks('<!-- wp:yuto/meilisearch {"enabledIndices":["page"]} -->'); 

    However, if you really need a shortcode, you can create a custom one to render the block. Add the following gist code to your plugin or child theme’s functions.php, and then use the [yuto_autocomplete_block] shortcode.

    https://gist.github.com/ponopress/b403014d004ab0990d44d763a5595971

    Please let us know if this solution works for you. If not, share more details on how you’re trying to implement it, and we’d be happy to assist further. Additionally, if we receive more support requests for this, we will consider adding it to the main plugin in a future update.

    Regards,
    Pono Press

    • This reply was modified 1 year ago by ponopress.

    Hi

    That didn’t work for us, is there any other way to implement a search box?
    Regards

    Plugin Author ponopress

    (@ponopress)

    Hello @alfredo11 ,

    Thank you for your patience regarding our delayed response.

    We do offer an Autocomplete Search block that can be easily inserted through the Block Editor. Could you please clarify your question? Are you referring to using it within your own code, or are you working with the Classic Editor?

    Your clarification will help us better assist you.

    Regards,
    Pono Press

    Plugin Author ponopress

    (@ponopress)

    Hello @piotrlukanko and @alfredo11

    We’re excited to announce that shortcode support is now available in version 0.1.1! You can easily display the Autocomplete search anywhere on your site using the [yuto_autocomplete] shortcode.

    For a full overview of available options and usage examples, please refer to our Shortcode Documentation.

    Note: The previously shared gist has been removed, as this feature is now fully integrated into the plugin.

    Regards,
    Pono Press

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

The topic ‘Shortcode’ is closed to new replies.