WPML and API REST questions
-
Hello,
WP: 5.5.3
WWP: 5.2.4
WPML: 4.4.3
PHP version: 7.4.15I have a question about the use of the REST API and the integration with WPML.
My site is published in 3 languages and the translations are managed using WMPL.
Each language is accessed by a difference web path
examples on my test site:
thenbp-app.itartech.com (spanish by default)
thenbp-app.itartech.com/ca (catalan)
thenbp-app.itartech.com/en (english)1. I need to obtain the popular posts for each language using the WPP REST API, but I just can get the main language popular posts.
How can I build the API URL to get popular posts for the secondary languages?http://thenbp-app.itartech.com/wp-json/wordpress-popular-posts/v1/popular-posts/
2. And related to this, how can I see the popular pots for the secondary languages in the WordPress Admin Panel?
In “Options > WordPress Popular Posts > Stats” I only see the main language popular posts.http://thenbp-app.itartech.com/wp-admin/options-general.php?page=wordpress-popular-posts&tab=stats
If I change the language through the WPML tab I still get the same language posts:
http://thenbp-app.itartech.com/wp-admin/options-general.php?page=wordpress-popular-posts&tab=stats&lang=ca&admin_bar=1Thank you very much. Any help will be appreciated.
The page I need help with: [log in to see the link]
The topic ‘WPML and API REST questions’ is closed to new replies.