In WordPress, a navigation menu, a list of categories or pages, and a list of comments all share one common characteristic: They are the visual representation of tree-like data structures. This means that a relationship of superordination and subordination exists among the elements of each data tree.
![WordPress Comments Structure](http://fuelyourblog.com/wp-content/uploads/2015/10/01-wpcommentsstructure-opt-small1.png)
There will be elements that are parents of other elements and, conversely, elements that are children of other elements. A reply to a comment depends logically on its parent, in the same way that a submenu item depends logically on the root element of the tree (or subtree).
The post Customizing Tree-Like Data Structures In WordPress With The Walker Class appeared first on Smashing Magazine.
Customizing Tree-Like Data Structures In WordPress With The Walker Class
http://www.smashingmagazine.com/2015/10/customize-tree-like-data-structures-wordpress-walker-class/
http://rss1.smashingmagazine.com/feed/
Smashing Magazine
For Professional Web Designers and Developers
Powered by WPeMatico