Do you want to remove all your recent searches?

All recent searches will be deleted

Like
Watch Later
Share
Add to

Limit the Number of Pages in Your Wordpress Navigation Bar

9 years ago141 views

Using the “include” function in Wordpress you can specify the exact number of pages you want to show in your navigation. Example: Show traffic is gold. You need to edit the header.php file found here: wp-content/themes/your-theme/header.php Open the file with your favorite editor. Search the file for “wp_list_pages” Find This: php wp_list_pages('title_li=&depth=4&sort_column=menu_order); Change to this: php wp_list_pages('title_li=&depth=4&sort_column=menu_order&include=2,7,6,112,5'); Upload the file and your site should only show the pages you’ve indicated.

Report this video

Select an issue

Embed the video

Limit the Number of Pages in Your Wordpress Navigation Bar
Autoplay
<iframe frameborder="0" width="480" height="270" src="//www.dailymotion.com/embed/video/xb52ao" allowfullscreen allow="autoplay"></iframe>
Add the video to your site with the embed code above