This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Redirections pointing to wrong url
1
2
Started by: abdul-alimB
in: English Support
Problem: add_filter( 'wpml_is_redirected', function( $redirect, $post_id, $q ) {<br /> if ($q->query_vars["p"] && $q->query["post_type"] == "treatments"){<br /> $permalink = get_permalink($post_id);<br /> if (strpos($q->query["name"], $permalink)){<br /> return $redirect;<br /> } else {<br /> return false;<br /> }<br /> }<br /> return $redirect;<br />}, 10, 3 );If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
|
1 | 17 | 9 months, 2 weeks ago |