SunriseWeb.ca

  • Websites
    • Recent Projects
    • PEI Web Presence Program
    • WordPress.com
    • Your Custom Website
    • Website Features
    • Website Hosting
    • WordPress Basics
  • Email Marketing
  • Web Development
    • WordPress Plugins
    • Web Applications
    • Google Apps
  • News & Updates
    • Recent Projects
    • Blog
    • Business
    • Web
    • WordPress Plugins
  • Contact – (902) 940-5034
    • Contact
    • About
    • Community
      • Red Island Relay
      • Lobster Carnival
    • Site Map
You are here: Home / Website Gallery / Genesis Themes / Genesis page_archive.php Menu-based Site Map

Genesis page_archive.php Menu-based Site Map

August 16, 2013 by Brad Trivers

The Genesis page_archive.php template is typically used to display a site map of a website build with the Genesis framework. It contains the list of all pages on the website as output by the function wp_list_pages(“title_li=”). This is fine but most people use WordPress custom menus to organize pages – not the numerical page order from days of old.

Recently a client of mine wanted to display their menus in the Genesis Site Map (“archive”) that is displayed using the page_archive.php page template.

WordPress Menu-based Site Map using Genesis page_archive.php

So I copied over the default page_archive.php template and modified it to get all Menus instead of Pages.

It gets all menus using wp_get_nav_menus (which unfortunately doesn’t have a WordPress codex entry) and steps through to display each using wp_nav_menu .

Get the code for menu-based Genesis page_archive.php template

You can find menu-based site map code at this link – https://gist.github.com/sunriseweb/6249242 .

Just save this in your Genesis child theme directory as page_archive.php – which the Site Map page should already be using – and it will be live.

  • Tweet
  • More
  • Print

Filed Under: Genesis Themes

Subscribe to our mailing list

Get ideas for your web presence, helpful links and tips, and updates about our latest projects.

About Brad

Husband and father of two. PEI MLA for Rustico-Emerald. WordPress Developer. Kitchen party musician. Oldtimer hockey player. Follow me at @bradtrivers or view my personal website BradTrivers.com. Read More…

About Karen

Wife and mother of two. Industrial engineer, P. Eng., Chief Financial Officer, head of quality assurance, web designer. Read More…

Canva – The Online Design Tool Everyone Is Raving About

Design anything in minutes with thousands of beautiful templates and images from Canva.

Try Canva Pro Today

Get online quickly!

WordPress.com The Premium Plan for a website with WordPress.com costs $120/year and includes a domain name. Contact me to get started.

Sell Products and Services Online

We recommend and use WooCommerce for online shops. WooCommerce

Project Categories

  • Genesis Themes
  • Elegant Themes
  • Divi Theme
  • WooCommerce
  • WordPress.com

Copyright © 2021 · Agency Pro Theme on Genesis Framework · WordPress · Log in