4 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
1eightmedia says

I purchased the Midnight Sun theme and the pages displayed on the main navigation are listed in alphabetical order as opposed to the order that I set for each page under “edit page” in the admin panel. Does anyone know how to change that?

faevilangel_designs
faevilangel_designs Recent Posts Threads Started
86 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
faevilangel_designs says

You need to edit the wordpress files, depending on the theme, it should be in the header.php

if you send me an email, I will have a look through your files for you.

4 posts
  • Has been part of the Envato Community for over 6 years
strangelife says

You can set the arguments to menu order…

<?php wp_list_pages('sort_column=menu_order'); ?>

More info at this page

http://codex.wordpress.org/Template_Tags/wp_list_pages

107 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
colorit says

I’ve the same problem.

Isn’t there a WP plugin, that do this for me?

... sorting the pages, as I want and perhaps excluding some pages from being shown?

If you change anything on template files, these changes will be overwritten, if the author offers an update of the theme and you copy the new theme’s files to your server :-(

faevilangel_designs
faevilangel_designs Recent Posts Threads Started
86 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
faevilangel_designs says
I’ve the same problem.

Isn’t there a WP plugin, that do this for me?

... sorting the pages, as I want and perhaps excluding some pages from being shown?

If you change anything on template files, these changes will be overwritten, if the author offers an update of the theme and you copy the new theme’s files to your server :-(

You will need to edit the template files, all the answers to your questions are in the codex.

You can just show certain pages in the WP menu, by excuding certain ones.

Just customise the nav, and then keep a backup of the new nav (just copy the nav section to the new theme if you get an update).

122 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
jayjdk says

My Page Order – Nice, easy and simple plugin ;)

4 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
1eightmedia says
You need to edit the wordpress files, depending on the theme, it should be in the header.php if you send me an email, I will have a look through your files for you.

Thanks. I’ll send you an email.

4 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
1eightmedia says
My Page Order – Nice, easy and simple plugin ;)

I tried that plugin, and it didn’t work for my theme.

faevilangel_designs
faevilangel_designs Recent Posts Threads Started
86 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
faevilangel_designs says

Thanks for the email, the code for the menu is written differently to how wordpress tell develoepers too.

I will look into it more after i get in from work, I might need to see more of the files to take a proper look.

Could you send me your functions.php file? thanks

27 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+3 more
BioXD says

Hi, i´m the author of the theme.

The menu is coded in that way to allow the individual selection of pages from the admin panel, therefore, you need to change the way they show in that list if you want to use the page order as the sort filter for the menu, it is easy tough. Go to functions.php line 541.

You should see this:

$pages = get_pages();

change it for

$pages = get_pages('sort_column=menu_order');

I just tested it, it works. You might need to reselect the pages in the admin panel before you see any changes.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by