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

    (@tijmensmit)

    The user selects a category in the store locator, and you want to include the selected category in the slug?

    You can do this with the wpsl_store_data filter. This allows you to loop over the search results just before they are returned.

    The selected category ID should be available through $_GET[‘filter’], so based on that you can look up the category name and place it behind the existing permalink.

    You want to redirect them to the category page instead of showing them the single store page? I’m sure there are better ways, but one way to do that would be to create a custom single store template and in the template check if the category slug is set, if so, redirect the user to the correct category template.

    Thread Starter civid

    (@civid)

    Ok. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pass the selected item value to store url’ is closed to new replies.