page ordering in menu fails
-
Hi Guys,
I’ve installed a purchased theme however I am having issues with some code…
It is sorting the page names by name A-Z but I need it to use menu_order in the database…
This is the area where it shows the page names. There is a reference to menu-pages in the msoptions table (See second code)
<?php $pages = cs_getoption('menu-pages'); if(!empty($pages)): foreach($pages as $page) { $page_data = get_page($page); echo '<li><a href="' . get_permalink($page). '">' . $page_data->post_title . '</a> \ </li>'; } endif; ?>
a:27:{s:8:"logo-url";s:73:"http://domain.co.uk/wp-content/themes/midnightsun/images/logo.png";s:17:"background-choice";s:10:"bgnova.jpg";s:14:"background-url";s:0:"";s:11:"index-title";s:15:"Latest Articles";s:11:"paged-title";s:25:"Blog Archive, Page %page%";s:14:"features-title";s:10:"Must reads";s:15:"slider-maxitems";s:1:"0";s:17:"features-maxitems";s:1:"9";s:11:"index-style";s:1:"2";s:13:"archive-style";s:1:"1";s:12:"search-style";s:1:"1";s:13:"sidebar-style";s:1:"2";s:22:"featured-indexposition";s:1:"3";s:24:"featured-archiveposition";s:1:"3";s:23:"featured-searchposition";s:1:"3";s:23:"featured-singleposition";s:1:"3";s:10:"social-rss";s:0:"";s:12:"social-email";s:38:"mailto:subscribed@xxx-xxxx.co.uk";s:13:"social-flickr";s:0:"";s:15:"social-facebook";s:81:"http://www.facebook.com/?ref=logo#!/pages/xxxx-X-xxxx-";s:14:"social-twitter";s:0:"";s:11:"social-last";s:0:"";s:14:"social-youtube";s:0:"";s:17:"copyright-message";s:51:"Copyright xxxxxX-xxxx2010, All rights reserved";s:10:"menu-pages";a:6:{i:0;s:1:"4";i:1;s:2:"32";i:2;s:2:"30";i:3;s:1:"6";i:4;s:2:"38";i:5;s:1:"2";}s:10:"logo-width";i:302;s:11:"logo-height";i:54;}
Can anyone help me with a simple orderby??
- The topic ‘page ordering in menu fails’ is closed to new replies.