apply_filters() and the_excerpt are giving unexpected results

I feel like I must be missing something pretty obvious, here, but I can’t seem to get WordPress to cooperate. I’m generating Facebook OG tags with a function. Everything works fine, except for the excerpt. Since the deprecation of get_the_excerpt($post->ID), is there another way to create an excerpt without having to create a whole new … Read more

How can i display the content in plaintext

i want to display my excerpt in plaintext. How can i do this? This is my Snippet where i display the content: <?php the_content(__( ‘Weiterlesen &rsaquo;’,’okay’)); ?> How i change the snippet to display the content in plain? greets, niklas 1 Use wp_strip_all_tags() to remove the content of script and style elements too: echo wp_strip_all_tags( … Read more