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

  • <?php the_content();?> should do the trick – JMau Jul 10 '13 at 16:55
  • 1
    No, '<?php the_content(); ?>' shows the content with html-tags, but i won´t html-tags and formats in my text. u know? – ScienceNoob Jul 10 '13 at 17:00
  • Use get_the_content with a filter – Wyck Jul 10 '13 at 17:01

Use wp_strip_all_tags() to remove the content of script and style elements too:

echo wp_strip_all_tags( get_the_content() );
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.