למשתמש זה אין נושאים מועדפים.
נושאי הפורום המועדפים
נושאי הפורום נוצרו
מצב |
נוֹשֵׂא
|
תוֹמֵך | קולות | פוסטים | טְרִיוּת |
---|---|---|---|---|---|
Querying menus in different languages with WPML GraphQL
התחיל על ידי: ivanD-50 ב: English Support |
3 | 5 | לפני 4 חודשים | ||
hreflang sets the language name correctly, but the language prefix in the href does not change.
התחיל על ידי: ivanD-50 ב: English Support |
2 | 3 | לפני 7 חודשים, 2 שבועות | ||
Unable to get post translation taxonomy terms using GraphQL
התחיל על ידי: ivanD-50 ב: English Support |
2 | 6 | לפני שנה 1, 4 חודשים | ||
WPML chat support ticket by ivanD-50 – 1692261547
התחיל על ידי: ivanD-50 ב: English Support |
1 | 1 |
לפני שנה 1, 4 חודשים
|
||
Unable to query a post by a slug with GraphQL
התחיל על ידי: ivanD-50
ב: English Support
Problem: We encountered an issue querying custom post types by a slug with graphql, and it works only for the posts in the site's default language, e.i. If the site's default language is English, this query for the post will work: query getArticlesByslug { article(id: "the-latest-eng-article", idType: SLUG) { title content } } But if we change the site's default language to say Belarusian, the query will return null. Solution: 1. Add this function to the functions.php file of your theme. add_filter('request', function($vars){ if (isset($vars['graphql']) && !empty($vars['name'])) { $vars['suppress_filters'] = true; } return $vars; }); 2. Save the file and reload the homepage of your site. The issue has been escalated to our developers, and they will try to improve this in future versions of WPML GraphQL Relevant Documentation: https://wpml.org/documentation/related-projects/wpml-graphql/ |
2 | 8 | לפני שנה 1, 4 חודשים |