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

    (@tijmensmit)

    Add this code the functions.php in your theme, and a ‘terms’ field is included in the json output on the front-end holding the name of the assigned store terms.

    You can access the ‘terms’ data in the search results with the wpsl_listing_template filter, and show them wherever you want.

    Thread Starter rrfranco92

    (@rrfranco92)

    Sweet! Got it working! Thank you so much!

    Although I’m having an issue. When the page loads, none of the results are shown, but if you start filtering then they will show up as expected.

    Thread Starter rrfranco92

    (@rrfranco92)

    I’m also trying to implement this with a custom taxonomy, I guess it is only a matter of changing the taxonomies value?

    Thread Starter rrfranco92

    (@rrfranco92)

    Hey Tijmen,

    Already made it! But I’m stealing getting that bug I mentioned earlier. Any idea what can it be?

    Perhaps anything with AJAX?

    This is the page http://www.gastronomiacomvinhodoporto.com/guia-restaurante/

    Plugin Author Tijmen Smit

    (@tijmensmit)

    When the page loads, none of the results are shown

    The center is placed in the middle of the ocean, this happens when you don’t define a starting point on the settings page. Set it for example to ‘lisabon’ and it should show locations on page load.

    Thread Starter rrfranco92

    (@rrfranco92)

    That was not the problem.

    I managed to get it working by unchecking the option “Load Locations on page load”.

    I had it checked because that’s was what I wanted but somehow that was interfering with the code you gave. Unchecking that made the results display on load like I needed.

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

The topic ‘Get category values in the store listing’ is closed to new replies.