WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to use the summary tag to summarise the content of a post but i'm facing a couple of issues doing that:

  1. There isn't an option for it in the wysiwyg - how can i add in elements to the format drop down?

  2. Wordpress strips out the element when the editor loads, so saving the page again removes the tag. How can i white list "summary"?

share|improve this question

You can use the $allowed_tags global. Add the following to your functions.php file.

global $allowedtags;
$allowedtags['summary'] = array('class' => array());

Add more attributes within the array similar to the class element. You can learn more on Otto's post here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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