外掛說明
WordPress doesn’t allow some tag in post. If you want to use class in img tag, you will lost class attributes when you publish (only admin not lost). So, allowposttags plugin can allow attributes and new tags in wordpress. You just edit in allowposttags.php file.
A few notes about the sections above:
- “Contributors” saturngod
- “Tags” posts
- Stable tag should indicate the Subversion “tag” of the latest stable version, or “trunk,” if you use
/trunk/for stable.
安裝方式
This section describes how to install the plugin and get it working.
e.g.
- Upload
allowposttags.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
常見問題集
A question that someone might have
An answer to that question.
How to add allow tags?
allowedposttags[‘pre’][‘name’]=array();
‘pre’ is the tag name ‘name’ is the attribute name
So. If you want to add class attributes in img
allowedposttags[‘img’][‘class’]=array();
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
0.1
- use global allowtags