This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Setting up my custom XML configuration
Started by: basK-12
in: English Support
Problem: acfml\classes\class-wpml-acf-blocks.php at line 191. Replace the existing get_text_type function with the following code: private function get_text_type( $text ) {<br /> $type = 'LINE';<br /> if ( is_array( $text ) ) {<br /> $type = 'array';<br /> } elseif ( strip_tags( $text ) !== $text ) {<br /> $type = 'VISUAL';<br /> } elseif ( strpos( $text, "\n" ) !== false ) {<br /> $type = 'AREA';<br /> } else if (preg_match('/^(?:https?):\/\/\S+/i', $text)) {<br /> $type = 'LINK';<br /> }<br /> return $type;<br />} Additionally, ensure that you mark the link with the "Translate" option as outlined in our documentation: Setting the translation preferences for ACF fields created using PHP code. If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum. |
2 | 15 | 4 months ago | ||
Translate ACF URL field
Started by: basK-12 in: English Support |
2 | 9 | 6 months, 3 weeks ago |