admin管理员组文章数量:1130349
I put the caption on a picture like this, the blog looks good,
but in the compact view, I receive this problem
I guess the editor can not read the HTML tag, Is anyone know what happened?
I put the caption on a picture like this, the blog looks good,
but in the compact view, I receive this problem
I guess the editor can not read the HTML tag, Is anyone know what happened?
Share Improve this question asked Nov 27, 2018 at 2:51 baonhgbaonhg 31 bronze badge 3- Can you describe what you mean by compact view? Where are your screenshots from? What are they of? – Tom J Nowell ♦ Commented Nov 27, 2018 at 3:18
- That error from my company blog, it means I create a post and when I move to the website, I got an error like the second picture. – baonhg Commented Nov 27, 2018 at 8:18
- But how is it being displayed? Is that a widget? Where is the code that displays that content on the frontend? – Tom J Nowell ♦ Commented Nov 27, 2018 at 16:54
1 Answer
Reset to default 0That's not an HTML tag, it's a shortcode. If your theme used the the_excerpt() function for displaying the 'compact version' of the post content then this wouldn't appear. WordPress strips shortcodes out of post excerpts to prevent this happening.
If your theme is using its own method for generating the excerpt then its developer needs to fix the theme so that excerpts properly remove shortcodes. This can be achieved with the strip_shortcodes() function.
I put the caption on a picture like this, the blog looks good,
but in the compact view, I receive this problem
I guess the editor can not read the HTML tag, Is anyone know what happened?
I put the caption on a picture like this, the blog looks good,
but in the compact view, I receive this problem
I guess the editor can not read the HTML tag, Is anyone know what happened?
Share Improve this question asked Nov 27, 2018 at 2:51 baonhgbaonhg 31 bronze badge 3- Can you describe what you mean by compact view? Where are your screenshots from? What are they of? – Tom J Nowell ♦ Commented Nov 27, 2018 at 3:18
- That error from my company blog, it means I create a post and when I move to the website, I got an error like the second picture. – baonhg Commented Nov 27, 2018 at 8:18
- But how is it being displayed? Is that a widget? Where is the code that displays that content on the frontend? – Tom J Nowell ♦ Commented Nov 27, 2018 at 16:54
1 Answer
Reset to default 0That's not an HTML tag, it's a shortcode. If your theme used the the_excerpt() function for displaying the 'compact version' of the post content then this wouldn't appear. WordPress strips shortcodes out of post excerpts to prevent this happening.
If your theme is using its own method for generating the excerpt then its developer needs to fix the theme so that excerpts properly remove shortcodes. This can be achieved with the strip_shortcodes() function.
本文标签: captionsUnknow shortcode read on display site
版权声明:本文标题:captions - Unknow shortcode read on display site 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749149168a2323516.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论