Hi,
We’d like the Advanced sidebar pages menu sort order to match the sort order for our website’s primary menu child items, which are displayed according to the sort order in the WordPress Menus section. Otherwise it is very disorientation for the user to see a flyout from Main Menu with one sort order and a sidemenu with a different sort order. Additionally, it would be very useful if it adopted this menus menu titles because if the title is changed then they will both have differing titles.
Can you please advise how we can achieve this?
thanks
OnPoint Plugins
Hi Daniel,
As your website’s menus are not directly linked to the pages widget, there is no reasonable way to have the two linked as far as ordering and titles.
However, you may use the “Advanced Sidebar Navigation Menu” widget to display the same menu used as your primary menu. This will display the same order and titles as your site’s primary menu.
Have a great night!
OnPoint Plugins
Hi Daniel,
I forgot to mention, there is one way to get the pages menu to display the same order and titles. It may be accomplished by manually ordering them and setting their titles via the options on the page edit screens.
Step 1: Order the pages to match:
If you select “Page Order” as the “Order by” in the widget settings, the menu items will display in the order the are specified using Page Attributes. If you would like to drag/drop the order of you pages you may use this plugin.
Step 2: Set the menu titles to match:
On each page edit screen there is an “Advanced Sidebar Menu” box which lets you specify the title which will be used in the menus. More information may be found here.
Chris Green
Hi,
Changing the sort order in the WordPress Pages area works well, however there is one problem. If there is a custom link added to the main nav menu (for instance, an external website, then this will not reflect on the Pages Menu widget. How can we get the pages menu widget to display these items?
OnPoint Plugins
Hi Daniel,
One approach would be to use a plugin like Page Links To to create placeholder pages which create items in the page menus but actually link to external sites.
Disclaimer: “Page Links To” was not created nor is supported by us.
Have a great day!
Chris Green
Hi,
Thanks for suggesting this but we investigated it and we’re hesitant to install this type of plugin for dependency, speed and security reasons. Is there any alternatives, even if we have to ad a filter or function or something?
thanks
OnPoint Plugins
Hi Daniel,
Really any plugin which redirects a page to a custom URL will do.
If you want to use a filter, you may setup the redirects in the following way. This example checks and redirects based on the page id. You could change the
switch
andcase
to be any template tag if you prefer to check for page title or something else.Have a great day!