Add Hierarchical Number To HeadLine

by kosuke

Overview


This plug-in is a plug-in that adds a number string that can grasp the heading hierarchy at the head of all headings created by h1 to h9 in the article.
For example,
<.h1>test<./h1>
<.h2>test<./h2>
<.h2>test<./h2>
Let’s say it is like this.
Then, on the article, a number string is added to the heading as follows.
1 test
1-1 test
1-2 test
In this way, the hierarchical structure of the heading is added to the head of the headline and it is displayed on the article.

In the user setting, it is possible to set “number” and “character between numbers” to be added to the headline.

xxxIt does not have to be a hierarchy from h1xxx

Since this plug-in allocates numbers based on the largest heading in the article,
There is no problem even if the biggest headline tag in the article is not h1.

For example

<.h2>test<./h2>
<.h3>test<./h3>
<.h3>test<./h3>

Even if you use heading tags in articles as in

1 test
1-1 test
1-2 test

And assign numbers.

For Japanese users

h1~h9

<.h1>test<./h1>
<.h2>test<./h2>
<.h2>test<./h2>


1 test
1-1 test
1-2 test

””””

xxxh1xxx


h1

<.h2>test<./h2>
<.h3>test<./h3>
<.h3>test<./h3>

1 test
1-1 test
1-2 test

Discuss


Summary
Version:
1.0.5
Last updated:
Active installations:
WordPress Version:
3.0.1 or higher
Tested up to:
4.8.17
Ratings