Contributors: LBell
Donate link: https://github.com/sponsors/lbell
Tags: directory, student, employee, people list, board members, church, club, officers
Requires at least: 3.0
Tested up to: 6.9
Stable tag: 1.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
The simplest, lightest way to manage and display a directory of anything.
Finally!
A ridiculously light, stupidly-simple plugin to manage and display a directory of anything: production cast, blog contributors, businesses, collectors items, church members, books, club officers, chickens in your flock, departmental employees, students, bowling league teams... you get the point.
Most "directory" plugins out there are way too complicated. One of the more popular ones weighs in at 30 MB! That's almost as much code as Wordpress Core. That's uranium heavy. Be careful of meltdowns...
Enter Hydrogen Directory.
This plugin is light and simple, just like hydrogen. Weighing just 62kb zipped, it's so tiny it might float away.
Whether you need to just list the 3 members on your team, are looking to showcase the 200 cars in your pinewood derby league, or need to import 10,000 employees, Hydrogen Directory manages it all with ease, speed, and predictable grace.
Highlights:
- Quickly add or updated listings in wordpress using familiar interface.
- Organize entries into buckets using taxonomies.
- Display your directories anywhere on your site.
That's it! Get on to more important things in your life.
- Upload the
hydrogen-directoryfolder to the/wp-content/plugins/directory. - Activate
Hydrogen Directorythrough the 'Plugins' menu in WordPress dashboard. - Use the "Hydrogen Directory" block in the Gutenberg editor, or use the shortcode
[hydrogen_directory]in classic editor.
The Hydrogen Directory block provides a visual way to add directory listings to your pages and posts with live preview.
| Panel | Setting | Description |
|---|---|---|
| Layout | Display Style | Choose list, card, or text layout |
| Layout | Columns | Number of columns (1-6) |
| Layout | Show Headers | Toggle section headers on/off |
| Content | Content Display | Excerpt, full content, or none |
| Content | Excerpt Length | Words to show in excerpt (5-100) |
| Filter | Taxonomy | Select which taxonomy to group by |
| Filter | Term | Filter to specific term or show all |
| Filter | Show Entries | Filter by all/current/past |
Simply search for "Hydrogen Directory" in the block inserter and configure using the sidebar controls.
| Attribute | Description | Default | Notes |
|---|---|---|---|
| tax | Taxonomy to display | role | Base plugin includes "role" tax |
| term | Term of above taxonomy (optional) | Limits tax to specified term. Use term name or slug. | |
| style | Style of listing | list | Base plugin includes: 'text', 'list', and 'card' styles |
| columns | Number of columns | 1 | |
| headers | Include headers | 1 | 1 = yes, 0 = no to include the Taxonomy and Terms in your list |
| content | Content display mode | excerpt | "full" (all content), "excerpt" (truncated), or "none" (hide) |
| excerpt_length | Number of words in excerpt | 20 | Number of words to show when content="excerpt" |
Examples:
[hydrogen_directory tax="role" term="Alter Boy" style="list" columns=3]
[hydrogen_directory tax="department" content="none"]
Yes - you can import using standard CSV import pathways. Although WordPress does not offer CSV import function natively, there are a number of plugins that will add this feature. This plugin has been tested successfully with the "Really Simple CSV Importer" plugin. (Note, entries in the file must be comma separated.)
You have several options:
- Add custom css to your theme to tweak the look.
- Override the default templates by copying any of the
directory-list-entry-{type}.phpfiles into your theme, and modifying it there. - Use the plugin hooks (filters / actions) to customize specific parts.
Probably not. But it could!
Hydrogen Directory is purposefully simple and easy. But it can extended in powerful ways. Contact me for requests for additional functionality.
- Fix: Less opinionated css for better theming and to prevent conflicts with themes and other plugins
- Fix: removed css from text template
- Add: Gutenberg Block with live preview and visual controls
- Add: REST API endpoint for block preview
- Add: Block editor styles for accurate preview rendering
- Add: More filter hooks for customizing output
- Fix: CSS structure for better theming
- Add: schema.org markup
- Add: shortcode options for content display mode and excerpt length
- Tested to WP 6.9
- Fix: escaping output
- Fix: namespacing and global variables
- Fix: post sanitization
- Security: prevent direct access
- Fix: template errors
- Fix: corrected filter/action usage
- Fix: activation error (submenu permission)
- Tested to WP 5.9.3
- Fix: CSS
- Position Meta Box fix
- Code cleanup
- Initial Release




