如何将特定帖子添加到WordPress导航菜单

Do you want to add specific posts to your WordPress navigation menu? Menus in WordPress can be fully customized, and you can add custom links, pages, posts, categories and more. In this article, we will show you how to easily add specific posts to WordPress navigation menu.

您是否要在WordPress导航菜单中添加特定帖子? WordPress中的菜单可以完全自定义,您可以添加自定义链接,页面,帖子,类别等。 在本文中,我们将向您展示如何轻松地将特定帖子添加到WordPress导航菜单。

Add specific posts to WordPress navigation menu
何时以及为何向导航菜单添加特定帖子? (When and Why Add Specific Posts to Navigation Menu?)

Navigation menus allow you to create a navigational structure for your website. This helps users quickly find the most important sections of your website.

导航菜单使您可以为网站创建导航结构。 这可以帮助用户快速找到您网站上最重要的部分。

WordPress makes it very easy to create and add navigation menus on your website. By default, it shows sections to easily add pages, categories, custom links, and more.

WordPress使在网站上创建和添加导航菜单变得非常容易。 默认情况下,它显示了可轻松添加页面,类别,自定义链接等的部分。

Adding items to navigation menu

Normally website owners add pages to their navigation menus like about page, a separate blog page, pricing page, or a contact form page.

通常,网站所有者会将页面添加到其导航菜单中,例如关于页面, 单独的博客页面 ,定价页面或联系表单页面。

Some websites add categories to navigation menus which allows users to quickly jump to different topics on their site.

一些网站在导航菜单中添加了类别 ,使用户可以快速跳转到其网站上的不同主题。

Categories and topics in navigation menu

However, sometimes you may need to add an individual post to your navigation menu. This could be your most popular post or something that you would like your users to find quickly.

但是,有时您可能需要在导航菜单中添加单个帖子。 这可能是您最受欢迎的信息,或者是您希望用户快速找到的信息。

That being said, let’s take a look at how to easily add specific posts to WordPress navigation menu.

话虽如此,让我们看一下如何轻松地将特定帖子添加到WordPress导航菜单。

将特定帖子添加到WordPress导航菜单 (Adding Specific Posts to WordPress Navigation Menu)

First thing you need to do is go to Appearance » Menus page in your WordPress admin area and select a menu to edit. You can also create a new menu and use it as your navigation menu.

您需要做的第一件事是转到WordPress管理区域中的外观»菜单页面,然后选择要编辑的菜单。 您还可以创建一个新菜单并将其用作导航菜单。

Select menu to edit

After selecting the menu, you’ll see tabs for pages, posts, custom links, and categories. You can click on each tab to expand it.

选择菜单后,您将看到页面,帖子,自定义链接和类别的标签。 您可以单击每个选项卡以将其展开。

Options for menu

If you cannot see the Posts tab there, then you need to add it by clicking on the Screen Options button at the top right corner of the screen.

如果您在此处看不到“ 帖子”选项卡,则需要通过单击屏幕右上角的“屏幕选项”按钮来添加它。

Add post box

Once the Post box appears, you need to expand it to select the specific posts that you want to add to your navigation menu and click on the Add to Menu button.

出现“ 帖子”框后,需要展开它以选择要添加到导航菜单的特定帖子,然后单击“ 添加到菜单”按钮。

Select specific posts

After adding the specific posts to the navigation menu, you can drag and drop menu items to adjust their display order.

将特定帖子添加到导航菜单后,可以拖放菜单项以调整其显示顺序。

Drag and drop menu items

You can also customize the label to change the post title into a smaller title. Make sure to save it and visit your website to see your WordPress navigation menu with specific posts in action.

您还可以自定义标签,以将帖子标题更改为较小的标题。 确保将其保存并访问您的网站,以查看WordPress导航菜单以及正在运行的特定帖子。

Navigation menu with specific posts

Navigation menus can be further customized to add search bar, social media icons, log in / log out links for your blog, post type archive, and more. You can also style your navigation menus to change their colors and appearance.

导航菜单可以进一步自定义,以添加搜索栏社交媒体图标 ,博客的登录/注销链接帖子类型存档等。 您还可以设置导航菜单的样式以更改其颜色和外观。

We hope this article helped you learn how to add specific posts to WordPress navigation menu. You may also want to see our expert pick of the best tutorials to master WordPress navigation menus to easily customize and manage your blog navigation.

我们希望本文能帮助您学习如何在WordPress导航菜单中添加特定帖子。 您可能还希望看到我们精选的最佳教程来精通WordPress导航菜单,从而轻松自定义和管理博客导航。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-add-specific-posts-to-wordpress-navigation-menu/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值