Treeline
WordPress Plugin: Visual site tree, shortcode sitemap, folder-style admin menu, XML sitemap, and utility page flags for your Pages list.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/apos37/treeline/archive/refs/heads/main.zipVisual site tree, shortcode sitemap, folder-style admin menu, XML sitemap, and utility page flags for your Pages list.
Description
Treeline maps your site in four ways, and adds an optional helper to the Pages list.
- Frontend: a drag and drop tree of your pages, posts and custom post types, seeded from your primary menu. Add content and custom links, choose colors and icons for any item, and show or hide data such as path, status, ID, categories, tags and custom meta. Hide individual items from the shortcode while keeping them in the admin tree.
- Shortcode: place
[treeline]anywhere to show visitors a styled sitemap. Pick a theme (or match the Frontend tab), colors, layout and data, add your own CSS, and watch a live preview update as you change settings. Drafts, private and password-protected pages are skipped automatically. - Backend: the WordPress admin menu laid out as an expandable folder tree. Reorder, rename, hide items and add custom links.
- SEO: a virtual
sitemap.xmlthat updates automatically when content changes. Choose post types and taxonomies, include images and videos, exclude noindex content, add extra URLs, ping IndexNow and preview the XML before saving. - Utility pages: an optional setting that lets you mark pages as utility pages (login, privacy policy and similar) from Quick Edit or Bulk Actions on the Pages list. Adds Utility and Non-Utility views with counts beside All, Mine, Published, Drafts and Trash, and remembers the view you used last.
Settings include role-based access, the post types available in the Frontend tree, the utility page option and an option to delete all data on uninstall. If Admin Help Docs is active, Treeline inherits its color scheme.
Installation
- Upload the plugin to
/wp-content/plugins/treelineor install it from the Plugins screen. - Activate it.
- Open Treeline in the admin menu.
Frequently Asked Questions
Where is my XML sitemap?
Enable it on the SEO tab. It is served at /sitemap.xml. The built-in WordPress sitemap is turned off by default to avoid duplicates.
Does it create files on my server?
No. Sitemaps are generated on request and cached.
How do I show the sitemap to visitors?
Add [treeline] to any page, post or widget that renders shortcodes.
How do I keep a page off the shortcode but in the admin tree?
On the Frontend tab, click Edit, open the item and check "Hide from Shortcode". Its child items are hidden too.
How do I mark pages as utility pages?
Turn on "Enable Utility Page Flags" in Settings. Then use Quick Edit or the "Mark as Utility" bulk action on the Pages list, and filter with the Utility and Non-Utility views. The last view you used is remembered.
Screenshots
- Backend tab in list view
- Backend tab in horizontal view
- Frontend tab in list view
- Frontend tab in horizontal view
- Shortcode tab showing all settings and vertical tree layout
- Shortcode tab showing horizontal tree layout
- Shortcode tab showing card grid layout
- SEO tab showing all settings and live preview
- Settings page
Changelog
1.0.2
- Fixed: The Backend tab froze for several seconds when clicking Edit, Save or Cancel on sites with many admin menu items. Editing is now near instant.
- New: "Add under" dropdown in the Frontend tab's Add Items box. Choose a parent for new items, with the last choice remembered for the editing session and the list updating as you add new items.
- New: "View Page" display option on the Frontend tab that links each item to its permalink, shown on its own line.
- Improved: Items added to the tree together are now added in alphabetical order.
- Improved: The Add to Tree buttons show a disabled "Adding..." state with a spinner while items are being added.
- Improved: Pasting into the Link Text field now trims leading and trailing whitespace.
1.0.1
- Initial release.