Get category_id from section page

Respondida

2 Comentários

  • Vladan Jovic
    Community Moderator

    Hi Rian! I think that the only way to achieve that is using of JS.

    <script>
    var catId = $(".breadcrumbs li:nth-child(2) a").attr("href").match(/[0-9]+/);
    </script>

    Hope this helps!

    1
  • David Bjorgen

    Vladan, very helpful code for my project. Thanks!

    0

Publicação fechada para comentários.

Powered by Zendesk