Make WordPress Core

Opened 18 years ago

Closed 15 years ago

Last modified 7 years ago

#3653 closed enhancement (invalid)

Site navigation with wp_list_pages() lacks some fundamental elements

Reported by: markjaquith's profile markjaquith Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Template Keywords:
Focuses: Cc:

Description

Home Links

If you have a WP page acting as your site's front page, it will have a place in the wp_list_pages() navigational system. If you have your blog as your front page, no such link will exist.

To solve this, you have to either use a plugin (like my "Page Links To" plugin) to make a WP page point to a specific URL, or you have to hardcode the link into the <ul / This is inflexible for several reasons:

  • the home link must be either first or last
  • theme must be edited
  • theme authors have to include logic for "page as front page" to know whether or not to hardcode the link

Nav links to non-WP pages

Next is the issue of linking to non-WP pages on your site (or on other sites) from within your wp_list_pages() Many people have forums, photo galleries or other portions of the site that are not WP powered, but should be linked to from within the navigational structure.

I'd like to move this functionality into WordPress core for 2.2

Here is how I see it working:

  • New DBX for pages that says something like "This page should link to [itself|another WP page|the front page|specified URL]" (dropdown). If "another WP pagae" is selected, a dropdown of the pages will appear next to it. if "specified URL" is elected, a textbox will appear next to it for URL typing.

This would enable people's navigational structure to be theme-independent.

The next thing that could be moved into core is a way to mark a page as hidden... pages that shouldn't appear in wp_list_pages easy to do now that we have a filter for global page excludes.

Change History (5)

#1 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.3

#2 @foolswisdom
17 years ago

  • Milestone changed from 2.3 to 2.5 (future)

#3 @darkdragon
17 years ago

  • Component changed from General to Template

#4 @Denis-de-Bernardy
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

there is a menu template tag now, and multitudes of plugins that deal with this.

This ticket was mentioned in Slack in #core-editor by reikodd. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.