這個外掛並未在最新的 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.

螢幕擷圖

  • Choose the menu to keep in sync
  • Manage the auto-redirects that are set up when your menu changes change the parent url portions
  • Demo of saving the menu syncing to the page and saving the page syncing to the menu

安裝方式

  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' );

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈FB Page Attributes WP Menu〉的開發相關工作。

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0

  • Initial release