跳到内容

CMS Navigation

v1.4.2

Amir Helzer · 2008年11月21日 上架

Out-of-the-box support for full CMS navigation in your WordPress site including drop down menus, breadcrumbs trail and sidebar navigation.

正在使用
20+
评分
暂无
累计下载
2.7 万
最近更新
2011年12月3日
需要 WordPress 2.3+已测试到 2.7

贡献者

截图

All three navigation functions enabled (highlighted in red).
All three navigation functions enabled (highlighted in red).
An open drop-down menu.
An open drop-down menu.

Update

Our new plugin, WPML, includes the functionality of CMS Navigation and is recommended for new designs.

It features much cleaner and simpler HTML and customization via the admin screen.

Additionally, we recommend you checkout our new CMS enabling plugins Types and Views.

With Types and Fields, you can achieve the functionality of this plugin yourself and customize it in whatever way you like.

Legacy Stuff

Do you want to use WordPress to create a full website, with easy navigation and menus?
This plugin will let you add essential navigation functions to your template, including:

  • Top navigation bar, listing the top-level pages and their children (as drop-down items).
  • Breadcrumbs trail navigation that shows the path to the current page all the way from the home page.
  • Left navigation that shows where the visitor is next to the page’s parent and nearby pages.

No configuration is required. To use, add the calls that create each navigation element to your template.
These calls can be added to any WP template

There are three template functions that can be used for displaying the navigation sections

Drop down top menu

Function:
cms_navigation_menu_nav($order=’menu_order’, $show_cat_menu=false, $catmenu_title=’News’)

This will display the top navigation – the top level pages with their sub pages as drop down elements.
Additionally – if specified – the menu will include the top level post categories at the end.

Normally, this function is added to your header.php file, so that it applies to the entire website.

Examples:

  • <?php cms_navigation_menu_nav() ?> – include without the categories menu.
  • <?php cms_navigation_menu_nav('post_title') ?> – sort items by title.
  • <?php cms_navigation_menu_nav('menu_order',true,'News') ?> – sort items according to the ‘order’ field.

Breadcrumbs trail navigation

Function:
cms_navigation_breadcrumb()

This will display a path from the current page all the way to the home page.
It’s useful for visitors who land in your website to know where they are and be able to navigate to relevant pages.

For posts

Home >> CATEGORY-NAME >> Post title

For pages

Home >> Parent pages... >> Page title

All the items back to the home page will be clickable.

You can add this function to single.php and page.php so that it will produce trail navigation for every page or post.

Sidebar navigation

Function:
cms_navigation_page_navigation($order=’menu_order’)

This will display the sidebar navigation for pages.
It will show a tree created the page parents and it’s ‘brother’ pages (other children to the same parent).

This function should be added to page.php, as it provides local navigation between pages.

Live example using this plugin

Baripedia is using this plugin (and other CMS related plugins we’ve written).

Version History

  • Version 0.1
    • First public release.
  • Version 0.2
    • Removed some of unneeded formatting.
    • Added option to set the tag around sidebar navigation heading.
  • Version 1.2
    • Handles setting static pages for homepage and blog page.
  • Version 1.2.1
    • Added static home page to top navigation
  • Version 1.3
    • Works with IE6 as well as other browsers (didn’t support IE6 before)
    • Removed the gradient and simplified the CSS for customizing the menus
    • The top menu HTML has changed. If the encapsulating DIV has a background, you may need to change or remove it.
  • Version 1.4
    • Added feature to exclude pages from the top navigation.
    • Added GUI for controlling page settings (instead of editing custom fields).
  • Version 1.4.2
    • Added migration instruction to WPML

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums