Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_page_menu()

3 tags 1 category

wp_page_menu() — Displays or retrieves a list of pages with an optional home link. The arguments are listed below and part of the arguments are for wp_list_pages() function. Check that function for more info on those arguments.

Inputs: $args (array|string): Optional. Array or string of arguments to generate a page menu. See wp_list_pages() for additional arguments. Field $sort_column (string): How to sort the list of pages. Accepts post column names. Default ‘menu_order, post_title’. Field $menu_id (string): ID for the div containing the page list. Default is empty string. Field $menu_class (string): Class to use for the element containing the page list. Default ‘menu’. Field $container (string): Element to use for the element containing the page list. Default ‘div’. Field $echo (bool): Whether to echo the list or return it. Accepts true (echo) or false (return). Default true.

Returns string|void: HTML menu if ‘echo’ is false, nothing otherwise.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…