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:
Related Posts:
- How to allow html5 tag in WordPress
- Do not change the order of the tags in the editor
- Tag pages with regular editor
- how to see P and BR tags in tinymce?
- WordPress editor, change code wrap (bbpress?)
- Order tags, but not alphabetically
- How do I display a tag cloud under my post that only shows tags from that post?
- how can I use WP_Query to exclude a specific tag.?
- not functioning
- Drag-and-drop “Panels”-style visual layout editor?
- Best way to show map of tagged posts?
- Remove a particular tag name from the tagcloud
- How do I change the output of get_the_tag_list()?
- How to remove Tags: text from the_tags?
- What are allowedposttags and allowedtags?
- When switching from html to visual editor the tag gets erased
- List ‘n’ number of posts from a Tag, each with a different class or ID
- When are tags counted? Can it be trigered manually?
- two tinyMCE editors in the same page
- display tag slug as class per link in tag cloud
- How to add class on term link?
- Change the color of post title on specific tags
- How to use meta data for each tag cloud a
- Exclude a specific tag from the get_the_tags list
- Limit tag cloud terms by date
- URL scheme to retrieve tag archive by ID
- How to remove these comments and html tags from the content?
- How to get all tags collections in woocommerce?
- In need of array of post tags
- Query all posts which do not have tags assigned to them
- Tag subscription option in wordpress. How?
- How to list custom tags too, to wp-list-table table?
- Display posts and thumbnails with certain tags
- Is there a filter for editor-style.css file?
- Can Rich Text features be configured per user?
- How can I prevent wordpress from creating tag pages?
- how can i add all my tags to tagcloud?
- Using HTML 5 Details/Summary Tag
- Blog post : Remove comma between Tag names [closed]
- Why word can’t be displayed in wordpress?
- Get all terms if product of that term contains a specific category
- Prevent WordPress from messing my HTML
- How can the user place a custom text string as a placeholder for a plugin
- Show post tags on attachment page?
- How to Disable auto id attributes in Heading tag?
- What hooks are needed to bind a tag to a reusable block?
- How to dynamically generate wordpress editor on frontend?
- How to echo tag description on loop-page.php using WPeC 3.8
- I want a query to list tags
- Display get_the_tag_list by order entered in the backend
- wordpress str_replace the content with tag
- Highlight current tag using get_tags()
- show tags on “single”-template sidebar only
- Is there any way of making post tags (or custom post type tags) pop up as suggestion as in StackExchange sites?
- How to display tags with post_content
- Exclude Specific Tag On Homepage
- Change Size of P Tag on One Page Template [closed]
- How to add keyword field in custom form programmatically?
- Adding Related Articles to post
- WordPress title as keywords (tags) with excluded stop words
- Add/remove tags on frontend programmatically
- How to paste into WordPress editor without changing existing formatting in editor?
- Outputting HTML elements through WP-API
- No line breaks in tags in tag cloud
- Custom text for certain tags
- get_edit_tag_link does not return anything
- get an attachment’s media tags or check if it has a media tag?
- Anyway to retrieve a feed of posts that have BOTH tags?
- Top ten tags ala Delicious
- Links from the_tag not working
- Uncaught TypeError: switchEditors.switchto is not a function
- Is it possible to embed a wordpress tag page on wordpress?
- List latest post for each tag with a category
- How to add product tag to order list
- How do I display all tags (linked) from all posts, inline, with a separator?
- limit number of tags shown in tag.php
- Show ‘tags’ for a post on the frontend when in a list view
- How remove tags just have one post?
- How to remove base tags at the wordpress
- How to select tags in the frontend
- How are special characters encoded in tag-URL?
- Open graph ‘image’ content appears empty on debugger and filled in web source
- Is there a way to change the Tag selector from text input to checkmarks?
- Neverending tag problem
- Exclude Tags by Array
- Mapping external data to tags via term_id
- Create another TAG widget for posts
- How to take list of words and insert them as terms to become tags of a post
- Need to display tag group as first name, last name but sort on last name
- Create three unique tag page templates
- Assign tags records that have a keyword
- Tags Sorted By Characters?
- How to include post count in this “get_tags” snippet
- How to retrieve the post_id of a tag page?
- Problem with Line spacing in wysiwyg editor in WP 3.5.1
- How to add tags to identify custom post types in archives?
- Datetime on time tag wordpress puts it outside the tag
- See when a tag was first added
- WordPress Title Tag Not Changing
- WYSIWYG – Custom field inside link