WPIntell

Source evidence

Translated pages using WPML

Plugin Load Filter · support · 2022-12-26T16:25:00+00:00

mixedsentiment
mediumseverity
0.72relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Jack resolved
Hello, I’ve noticed just now plf doesn’t work on translated pages using WPML as the translation plugin. Is there a reason for this? Doesn’t seem to reach the end of the Plf_filter function. Thanks. Merry Christmas See the topic below https://wordpress.org/support/topic/wpml-issue-24/ The global wp_query never contains the page id for translated pages, despite the translated page just being a regular independent page. $GLOBALS['wp_the_query'] = new WP_Query(); $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; $GLOBALS['wp_rewrite'] = new WP_Rewrite(); $GLOBALS['wp'] = new WP(); $GLOBALS['wp']->parse_request(''); $GLOBALS['wp']->query_posts(); This code seems to work at getting the page id of original pages, but when the page is a translation it doesn’t work. 🤔</img> See https://wordpress.org/support/topic/wpml-slug-and-custom-post-types/#post-16390585

Comments

5 shown
Jack 2022-12-26T19:25:00+00:00

Is there a reason for this? Doesn’t seem to reach the end of the Plf_filter function. Thanks. Merry Christmas

enomoto celtislab 2022-12-27T02:24:00+00:00

See the topic below https://wordpress.org/support/topic/wpml-issue-24/

Jack 2022-12-27T15:16:00+00:00

The global wp_query never contains the page id for translated pages, despite the translated page just being a regular independent page.

Jack 2022-12-27T15:42:00+00:00

$GLOBALS['wp_the_query'] = new WP_Query(); $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; $GLOBALS['wp_rewrite'] = new WP_Rewrite(); $GLOBALS['wp'] = new WP(); $GLOBALS['wp']->parse_request(''); $GLOBALS['wp']->query_posts(); This code seems to work at getting the page id of original pages, but when the page is a translation it doesn’t work. 🤔</img>

Jack 2023-01-19T18:42:00+00:00

See https://wordpress.org/support/topic/wpml-slug-and-custom-post-types/#post-16390585