WordPress 選單中的 BuddyPress 連結

WordPress 選單中的 BuddyPress 連結

Codex Home → Getting Started → BuddyPress Links in WordPress Menus
BuddyPress Links in WordPress Menus

You can add links to: (a) the directory pages of your activated BuddyPress components and/or (b) your respective Member screens, in any of the navigation menus available in your theme. This can only be done after you finish configuring your BuddyPress installation (regular site | multisite).
Add Menu Links to the Directory Pages of Activated BuddyPress Components
Links include: Sitewide Activity, Members Directory, Groups Directory, and/or Blogs Directory (multisite only).

Navigate to Appearance > Menus.
Create a new menu.
Under the 「Pages」 section, select the links to the BuddyPress pages.
Click on the 「Add to Menu」 button.
Arrange the menu links as you like it.
Click on 「Save the Menu」 button.
Go to the 「Manage Locations」 tab and assign this menu to a theme menu location.
Click save and refresh your site to see your new custom menu in place.

Add Menu Links Specific to the Logged-in Member

Click on 「Screen Options」 to open up the panel at the top of the screen and check the 「BuddyPress」 option under the 「Show On Screen」 section. You can either create a new menu to contain these membership links or add them to the menu you already created above.

Navigate to the new 「BuddyPress」 navigation links in the panel shown below.

Select the items you would like to add to your menu
Click on the 「Add to Menu」 button. The links will be added to the Menu Structure panel.
Click on 「Save the Menu」 button.

Example of this menu in the front page of your site.

發表回覆

您的電子郵箱地址不會被公開。 必填項已用 * 標註