This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

YT Tree Menu

Description

‘YT Tree Menu’ is a widget plugin that displays a menu of all pages in relation to the current page in a CMS tree style layout. The menu is filtered to only list specific pages including child pages. The blog page and posts are supported and it also has the option to exclude items and sort the menu by different columns.

CSS Styles

Most default WordPress classes have been added to the widget, but some level aware classes have been added for further styling. Level numbers start at 1 (top level pages) and increase depending on how far down the tree structure the pages go. Below are some of the IDs and classes that can be used to customise the menu layout:

  • ul#yttreemenu – This is the main unordered list ID
  • li.yttml_[LEVEL] – Level class for list items. For example: li.yttml_1, li.yttml_2, etc
  • a.yttma_[LEVEL] – Level class for page links. For example: a.yttma_1, a.yttma_2, etc
  • a.yttm_current – Class for current open page
  • a.yttm_current_[LEVEL] – Level class for current open
    page. For example: a.yttm_current_1, a.yttm_current_2, etc
  • a.yttm_path – Class for current path (parent / ancestor) page
  • a.yttm_path_[LEVEL] – Level class for current path (parent / ancestor) page. For example: a.yttm_path_1, a.yttm_path_2, etc

To test the path / current item classes, simply add the following to your CSS stylesheet:
a.yttm_path {color:red;}
a.yttm_current {color:orange;}

Screenshots

  • Widget on Static Home Page
  • Widget on Sub Page
  • Widget on Static Blog Page
  • Widget on Search Page
  • Widget on Empty Page

FAQ

How can I give you feedback or development ideas?

I would love to hear from anyone using this plugin. If you have found bugs, or have ideas, please let me know! Contact me here: ytwebdev@gmail.com

Future Development

I am looking at adding functions for theme integration – including breadcrumbs.

Do you accept donations?

Not yet.

Changelog

0.4.2

  • Fixed: Exclude Top-Level Pages option

0.4.1

  • Fixed: Incorrect Closing Tags
  • Fixed: Validation
  • Added support for 404 Page
  • Renamed file correctly to yt-tree-menu.php

0.4

  • Blog as static child page now shows full menu
  • Added Search, Tag, Category and Date Support
  • Increased Post / Level Limit numbers
  • Search/Date/Cat/Tag results limited to post number
  • Fixed bug: Search has no results
  • Fixed Bug: Order of pages by ID if its the same publish date
  • Removed spans – added current item class to tags
  • Added class for path item (parent or ancestor of current)
  • Added non-level classes for current / path pages

0.3.1

  • Style fixes
  • Bug Fixes

0.3

  • Added blog page and recent posts
  • Added non-static blog home page
  • Added option for menu levels
  • Added option for post count
  • Style fixes
  • Bug Fixes

0.2

  • Added sort option.
  • Bug Fixes.

0.1

  • First stable version.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code