Support » Plugin: WP Store Locator » Stores count on top of stores list

  • Resolved Antonio Trifirò



    thanks for your plugin, it do the job wonderfully!

    I would like to add a _store founded count_ on the top of stores list: there’s a way to do it? I see a can create a custom template, but I think I need to get this number via javascript.

    Can you address me to find a solution?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you mean in the admin/dashboard? Or on the frontend in the ajax response?

    I assume you mean in the frontend.

    There’s a really useful article that would help you if so. But I’ll let the plugin creator link it as im on my phone. You wouldn’t get the post count in JavaScript as such. You would set it in PHP and then return it with your ajax response.

    Plugin Author Tijmen Smit


    The only way I can think is by using ajaxComplete to run a custom JS script that simply counts the li elements ( each one is returned results ), and then insert that number on top of the ul element somewhere.

    Thread Starter Antonio Trifirò


    Thanks @tijmensmit, it seems to be a very good suggest! 🙂
    All the best!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stores count on top of stores list’ is closed to new replies.