Linux 软件免费装
Banner图

AutoListicle: Automatically Update Numbered List Articles

开发者 someguy9
更新时间 2026年10月14日 05:55
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 7.1
版权: GPLv3
版权网址: 版权信息

标签

shortcode listicle auto number numbered list numbered headings

下载

1.2.3 1.1.0 1.1.1 1.1.2 1.0.0 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 1.2.4 1.3 1.4 1.5

详情介绍:

Easily keep your listicles with numbered lists updated correctly by using this plugin's shortcode [auto-list-number]. This will display the number 1 and increment with every use. Perfect if you write blog posts with steps or "top 10 lists". This will allow you to easily add items to your lists or move elements around without worrying about updating headings with the correct numbers. New in 1.5: the item count in post and SEO titles ("17 Best Coffee Grinders" stays correct as you add items), numbering that continues across paginated posts, a block editor panel and toolbar button, ordinal and word formats, and optional ItemList schema. Count in titles Put this in the post title and it shows the number of items in the post: [auto-list-number display="total"] Best Coffee Grinders It works in the page title, the browser tab, RSS feeds, the REST API, the titles and descriptions of Yoast SEO, Rank Math, All in One SEO, SEOPress and The SEO Framework, and the social tags of Yoast SEO, Rank Math and SEOPress. In SEO title templates you can also use %%autolisticle_total%% (Yoast, SEOPress) or %autolisticle_total% (Rank Math). The count is kept out of the URL WordPress makes from the title. Add name="my-list" to count a named list and format="words" for "Seventeen". Block editor Choose "Insert list number" from the More menu (the arrow) of the text toolbar to add [auto-list-number] at the cursor. The AutoListicle panel in the post sidebar shows how many items the post has, and its "Number headings automatically" switch numbers every heading of the chosen level with no shortcodes at all. Paginated posts In posts split into pages with the Page Break block, numbering carries on from page to page, and countdown, position ("4 of 12") and total displays count every page. To number a page by hand, give its first item a start value. Number headings automatically Add this once, above your list, and every H2 that follows gets a number in front of it: [auto-list-number-headings] It takes the same options as the item shortcode, plus level to pick the heading tag: [auto-list-number-headings level="h3" display="countdown" before="#" after=""] Numbers are wrapped in a span with the class "auto-list-number" so you can style them (set wrapper="none" to skip the span). Headings above the shortcode are left alone, and a second [auto-list-number-headings] starts a new count from where it sits. Shortcode Usage examples Basic usage [auto-list-number] Item one. [auto-list-number] Item two. [auto-list-number] Item three. Countdown example (for "Top 10" style lists) [auto-list-number display="countdown"] Best item (displays 3) [auto-list-number display="countdown"] Second best (displays 2) [auto-list-number display="countdown"] Third best (displays 1) Position display example [auto-list-number display="position"] First item (displays "1 of 3") [auto-list-number display="position"] Second item (displays "2 of 3") [auto-list-number display="position"] Third item (displays "3 of 3") Custom start number (for multi-part articles) [auto-list-number start="11"] This displays 11 [auto-list-number] This displays 12 [auto-list-number] This displays 13 Number formats [auto-list-number format="roman"] Displays I, II, III, IV... [auto-list-number format="alpha"] Displays A, B, C, D... [auto-list-number format="padded"] Displays 01, 02, 03... Before and after text [auto-list-number before="#" after=":"] Displays "#1:" [auto-list-number before="Step " after=" -"] Displays "Step 2 -" Spaces inside the quotes are kept. An underscore also works as a space (before="Step_"), which older versions required. Extended example using all shortcode functions. `Here is my list of [auto-list-number display="total"] items. [auto-list-number] Here is the first item in the list. [auto-list-number] Make long listicles with ease. [auto-list-number] You can even have multiple lists in one article. [auto-list-number name="my-new-list" after=":" wrapper="span"] My new list (this will start at number one). [auto-list-number name="my-new-list" after=":" wrapper="span"] This will be a second item. [auto-list-number] This item will be number 4.` Shortcode Options [auto-list-number-headings] accepts wrapper, before, after, start, format, schema and display (increase or countdown), plus level (Default: "h2") for the heading tag to number. ItemList schema Add schema="itemlist" to one item of a list (or to [auto-list-number-headings]) and the post outputs ItemList structured data for it, with each item's number, name and a link to its heading when the heading has an HTML anchor. It is off by default: Google currently shows list rich results only for recipes, courses, movies and restaurants, so for most listicles it is descriptive markup rather than a search feature. Troubleshooting If you are having trouble with a table of contents plugin you can use the [auto-list-number-force-reset] shortcode to reset your post's numbers. So ideally if your table of contents was at the top of your post you can put [auto-list-number-force-reset] below it so that all headings are reset to start at 1 again. This way the ToC plugin will loop through 1-4 for example then reset then the headlines can display 1-4 again. Developers can allow extra wrapper tags with the auto_list_number_wrapper_tags filter, add or translate number formats with auto_list_number_format, and turn ItemList schema on for every list with add_filter( 'auto_list_number_itemlist_schema', '__return_true' );.

安装:

To install this plugin:
  1. Download the plugin
  2. Upload the plugin to the wp-content/plugins directory,
  3. Go to "plugins" in your WordPress admin, then click activate.
  4. Add the shortcode [auto-list-number] where you want auto incrementing numbers in your articles (recommended use in headings), or add [auto-list-number-headings] once above your headings.

升级注意事项:

1.5 Numbering now continues across the pages of a paginated post (put start="1" on a later page's first item to keep numbering it by hand), and display="total" shows the bare number again, without a period.

常见问题:

Can I show the number of items in the post title?

Yes. Put [auto-list-number display="total"] in the title, or %%autolisticle_total%% (Yoast, SEOPress) or %autolisticle_total% (Rank Math) in an SEO title template. Only the total works in titles; numbering individual items is for post content.

Does it work with page builders, widgets and Query Loops?

Yes. Lists in block widgets and visual Text widgets are numbered on their own, page builder widgets inside a post continue the post's list, and a post shown inside another one (a Query Loop with full content, or a shortcode that embeds a post) is numbered separately from the page around it.

How do I style the numbers?

Use the wrapper option (or the automatic heading numbering, which wraps by default) and target the "auto-list-number" class in your CSS.

Do reusable blocks and synced patterns work?

Yes. Totals for countdown, position and total displays are counted from the rendered content, so shortcodes inside synced patterns are included.

更新日志:

1.5 1.4 1.3 1.2.3 1.2.2 1.2.1 1.2.0 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0