• Resolved diegonorzex

    (@diegonorzex)


    Hi, what I am trying to achieve is in the demo page:

    https://typesense.codemanas.com/

    and I search for something, the search term is fixed when changing between the Books – Blog – Pages tab. Right now, when I type something and then change post type the query term is erased.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author CodeManas

    (@codemanas)

    Hello @diegonorzex ,

    We have updated the plugin to 2.0.2 with new hook cm_typesense_additional_config which you can use like this below to preserve search term on changing between tabs.

    <?php
    add_filter( 'cm_typesense_additional_config', 'theme_slug_cm_ts_additional_configs' );
     function theme_slug_cm_ts_additional_configs() {
         return [
             'preserve_search' => true,
         ];
     }
    • This reply was modified 7 months ago by CodeManas.
    Thread Starter diegonorzex

    (@diegonorzex)

    Thank you! Works great

    BTW I uploaded the spanish translation of the plugin if you want to validate it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixed search query when changing post types?’ is closed to new replies.