to access the Services and then access the "Name". However the problem is the "Name" obtained this way is not language aware. In my site I have EN and RU(default) languages setup using Polylang. Is there any way to get the title say for EN and then RU separately?
I would be able to conditionally displaying them based on current language selected
Apologies for the delayed answer. Each service has a 'translations' property (JSON). For example, if you want to get the service name translations, you can access them like this:
As mentioned by Stefan in the related ticket. I am using
to access the Services and then access the "Name". However the problem is the "Name" obtained this way is not language aware.
In my site I have EN and RU(default) languages setup using Polylang. Is there any way to get the title say for EN and then RU separately?
I would be able to conditionally displaying them based on current language selected
Hello Himanshu,
Apologies for the delayed answer. Each service has a 'translations' property (JSON). For example, if you want to get the service name translations, you can access them like this:
json_decode($services[0]['translations'])->name->es_ES
This example is for Spanish.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables