0

I am wondering how can I add a country shortcode from geoip plugin (https://pl.wordpress.org/plugins/geoip-detect/) into comment field.

[geoip_detect2 property="country"]

From what I noticed comment field has to be a wysiwyg field (not text as it is by default). Is there any other way to do this? By custom php function or so?

Regards, Michal

2
  • Are you expecting commenters to use that shortcode in their comments? Or are you really asking how to show a commeter's country when they comment? Commented May 8, 2018 at 15:30
  • You'll want to be very careful with page caching, it looks like your question is "How do I enable shortcodes in comments". What problem does the geoip shortcode being usable in comments solve?
    – Tom J Nowell
    Commented May 8, 2018 at 15:41

1 Answer 1

0

Ok I found a solution by myself just by using this plugin: https://wordpress.org/plugins/enable-shortcodes-inside-widgetscomments-and-experts/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.