這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

FB Page Attributes WP Menu

描述

Automatically keep the page parent structure from page attributes in sync with a menu. Once you select which menu you want to keep in sync, save a page parent, and menu will be automatically updated, or save the menu and the page parent will be automatically updated. You can also add a page to the menu straight from the page attributes area when editing a page.

螢幕截圖

安裝

  1. Upload fb-page-attributes-menu to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure you have at least one menu at ‘Appearance’ > ‘Menu’
  4. Back up your database; once you decide to keep a menu in sync, saving the menu will update any existing page parent structure or vice versa.
  5. Select the Menu you would like to keep in since via ‘Appearance’ > ‘Menu Sync Settings’
  6. If you have menu items already, resave your menu via ‘Appearance’ > ‘Menu’ to automatically set the parents.

常見問題

Installation Instructions
  1. Upload fb-page-attributes-menu to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Make sure you have at least one menu at ‘Appearance’ > ‘Menu’
  4. Back up your database; once you decide to keep a menu in sync, saving the menu will update any existing page parent structure or vice versa.
  5. Select the Menu you would like to keep in since via ‘Appearance’ > ‘Menu Sync Settings’
  6. If you have menu items already, resave your menu via ‘Appearance’ > ‘Menu’ to automatically set the parents.
If a menu changes, won’t that change my permalink structure?

It may, depending on the permalink structure you chose. If hierarchical and the parent page changes it will. This plugin records those changes and will automatically intercept a 404 not found and redirect to the updated permalink.

Is this plugin right for me?

This allows content editors to quickly modify the menu when they edit a page without having to know (or even have access to) the ‘Appearance’ > ‘Menu’ area.

Can I still use custom links in my menu?

Yes, this does not delete any existing or any new custom menus you add. It only keeps the hierarchy in sync as well as allows you to add and remove pages from the menu from the page edit screen.

Are there any other filters or actions?

You can prevent editors from modifying the top level menu items via an additional filter. This might be useful if you want to make sure you, as an administrator, can update your design when a top-level navigation change needs to make made (for instance for responsive design purposes):

function my_plugin_or_theme_control_top_level( $access ) {
    // Your criteria here. Return true or false.
    return $access;
}
add_filter( 'page_attributes_menu_control_top_level', 'my_plugin_or_theme_control_top_level' );

function my_plugin_or_theme_control_top_level_title( $access ) {
    // Your criteria here. Return true or false.
    return $access;
}
add_filter( 'page_attributes_menu_control_top_level_title', 'my_plugin_or_theme_control_top_level_title' );

評價

There are no reviews for this plugin.

貢獻者及開發者

“FB Page Attributes WP Menu” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 FB Page Attributes WP Menu 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Initial release