I need make this work in an elementor text area.
I have multiple products pages and I want a counter for each one
An example of the facebook comment counter is this
(<span class="fb-comments-count" data-href="https://example.com/products/product1"></span>)
For a page with 2 comments the code do this: "Comments (2)"
Inside each page I have a facebook comment box and using shortcodes I can make it easily use the current url page.
But in the comment counter box I cant use shortcodes(just WYSIWYG), so I have to manually add the URL of the current page.
So what I want is automaticaly generate the current url inside of the comment counter code.