This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
WordPress Rest API documentation for Posts, Custom Post, Custom Taxonomy
Started by: sureshP-3
in: English Support
Problem: Solution:
To get the list of terms for a taxonomy in a specific language, append the language parameter:
For example, to get categories in German:
Refer to the WordPress REST API Taxonomies documentation for more details. To retrieve posts from a category based on language, you can use the
filter hook within a loop to get the translated post ID. Here's an example code snippet:
For more information, refer to the wpml_object_id hook documentation and the WP_Query Taxonomy Parameters documentation. Please note that custom code is beyond our support policy. If you need further assistance with custom code, consider contacting one of our certified partners. If this solution doesn't look relevant, please open a new support ticket. |
|
2 | 10 | 1 year, 4 months ago | |||||||||||
WordPress Rest API documentation for Posts, Custom Post, Custom Taxonomy
Started by: sureshP-3 in: English Support |
|
2 | 2 | 1 year, 4 months ago |