Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If your comfortable with code, then I can explain how to make this work. So let me know, and I can point you in the right direction.

    Thread Starter alisonmm

    (@alisonmm)

    Yes please!

    Thanks

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You need to use this filter to add an additional meta field.

    add_filter( 'wpsl_store_meta', 'custom_store_meta', 10, 2 );
    
    function custom_store_meta( $store_meta, $store_id ) {
        
        $store_meta['mi'] = 'km  / 1.609 or';
        
        return $store_meta;
    }

    Next use this filter to include the mi value in the search results template.

    Just replace ‘my_textinput’ with ‘mi’, and the value should show up. Do make sure to flush the wpsl transient cache as well on the WPSL settings page ( tools section ).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘km and mi’ is closed to new replies.