• I want to show the category name just once, followed by all the stores in that category using wp store locator. but I cannot figure out how to do that by coding.

    add_filter( 'wpsl_store_data', 'custom_store_data' ); function custom_store_data( $store_data ) {

    foreach ( $store_data as $k => $store ) {

    // modify the data for each location here.

    }

    return $store_data;

    }



    I wrote the filter but don’t know what to write in the loop. Please help

    • This topic was modified 1 year, 2 months ago by mrshiam.
  • The topic ‘Show the category name just once followed by all belogings store’ is closed to new replies.