简体   繁体   English

在Wordpress中订购页面

[英]Order Pages in Wordpress

I am new to CMS development, I prefer the MVC concept for every job. 我是CMS开发的新手,我更喜欢每项工作的MVC概念。 But just know the client requested to develop a website built in WordPress. 但只知道客户要求开发一个用WordPress构建的网站。 Everything is OK but I can't find to order pages in WordPress. 一切都很好,但我无法在WordPress中订购页面。

The case is: first I create a home page and then I create other pages, but the problem is every time I add new pages, it will be placed in my first menu. 情况是:首先创建一个主页,然后创建其他页面,但是问题是每次我添加新页面时,它都会放在我的第一个菜单中。

So I want to move the home pages in first menu. 所以我想在第一个菜单中移动主页。

Please help, thanks. 请帮忙,谢谢。

You can create a custom menu (with the pages/links you want, and the order you want !). 您可以创建一个自定义菜单(带有所需的页面/链接以及所需的顺序!)。 Then you can add that menu to be the new navigation menu (both header, and footer if you want) 然后,您可以将该菜单添加为新的导航菜单(如果需要,可以同时包含页眉和页脚)

References: 参考文献:

WordPress Menu (here you can find the step by step 'guide') WordPress菜单 (您可以在此处找到分步的“指南”)

Just go to Appearance --> Menus and then you'll be able to create menus and edit at will. 只需转到外观->菜单 ,然后您就可以创建菜单并随意编辑。 And if you need to create specific menus, see WP nav menu page. 如果需要创建特定菜单,请参见WP nav菜单页面。 There you'll see several code samples, but you'll need something as simple as 在那里,您将看到几个代码示例,但是您需要简单的内容

<?php wp_nav_menu( array('menu' => 'Main Nav' )); ?>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM