This widget will get a list of post/cpt title first character. The list is then displayed as an unordered list of links. The links take the user to an archive page for the specific post type and display the posts where its title begins with the character.
If the title begins with the following words, the first character of the second word will be used:
Examples
- 'A Cup of Joe' will be listed under 'C'
- 'The Pony' will be listed under 'P'
- 'Android Green is Nice' will be listed under 'A'
- 'The 10 Strangest Foods' will be places under '#' (number sign)
2.1.1
Added default values for block attributes and added checks to ensure they have values before render
2.1.0
- Added links block to replace legacy widget
- Updated minimum php version to 7.4
- Updated minimum WordPress version to 5.8
- Resolved RegEx issue that incorrectly grouped some titles in the group that begin with numbers.
2.0.2
cleaning up version numbers
2.0.1
fixed bug with earlier versions of php and version checking
2.0.0
- Complete rewrite. In an effort to make the code scale better.
- Removed slow query
- Added minimum WordPress version check
- Added minimum php version check
- Added grouping for titles that have a number as their first character
- Added custom rewrites the handle better archive links
1.0.2
Changed link builder again to account for modified front page settings
1.0.1
- Changed widget option for post type to include only publicly queryable post types ( Pages not an option anymore )
- Fixed links generated when using the post type of Post
1.0
Initial release