3
07/11/2024 9:26 am
Topic starter
I have a coding forum with a lot of code.
For the forum, I am using the wpForo WordPress plugin: https://wpforo.com/
It uses wpForo Schema.
However, in Google Search Console, I am getting the following error: "Bad escape sequence in string" in the field name: 'text':
I believe this is because there is a lot of code in this field.
How can I solve this problem?
Thank you!
1 Answer
2
07/11/2024 9:27 am
- Go to: [YOUR-SITE]/wp-content/plugins/wpforo/includes/functions-template.php
- Search for 'text' and remove the 3 lines where it appears.
In my case they were:
"text": "' . esc_attr( sanitize_text_field( $post['body'] ) ) . '", "text": "' . esc_attr( sanitize_text_field( $best_answer['body'] ) ) . '", "text": "' . esc_attr( sanitize_text_field( $suggested_answer['body'] ) ) . '",
Here is a video on the topic: