Customizing Tree-Like Data Structures In WordPress With The Walker Class


  

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

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.


Source: Smashing Magazine