Tag Archives: navigation

Creating Two-Tiered Conditional Navigation in Wordpress

    Here is a common navigational scheme, with parent pages on top and child pages (if they exist) on bottom:

    We’ll need code to help us: 1) query the page, 2) determine if there are child pages, and 3) properly highlight both the .current_page_parent and .current_page_item links.

——阅读全文(1656字)