In This Article
描述
The In This Article plugin is designed to help you list all h2
and h3
headings in the content of a post. These headings are displayed in an ordered structure, allowing users to easily navigate within the post. You can place this list on your single blog post page using a simple shortcode.
Features:
- Fetches all
h2
andh3
headings from the post content. - Displays the headings in a hierarchical, clickable list.
- Easy-to-use shortcode for placing the list anywhere on the posts.
- Allows smooth scrolling to sections when clicking on a heading.
License
This plugin is licensed under the GPLv2 (or later) license. See the License URI for more information.
安装
- Upload the plugin files to the
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Add the
[itah_in_this_article]
shortcode to any single blog post page where you want the list of headings to appear.
常见问题
-
How do I use the shortcode?
-
Simply insert
[itah_in_this_article]
into the content editor of any post or page. This will generate a list ofh2
andh3
headings from the content. -
Does this plugin support custom post types?
-
Yes, it works with any content type that uses
h2
andh3
headings in the post content.
评价
此插件暂无评价。
贡献者及开发者
更新日志
1.0.0
- Initial release of the plugin, providing shortcode support for fetching and displaying
h2
andh3
tags from post content.