WordPress.org

Ready to get started?Download WordPress

Forums

Need Help for get pages (2 posts)

  1. kristian73
    Member
    Posted 1 year ago #

    Hello,

    My navigation is built in this way:

    <?PHP
    foreach(get_pages('exclude=22,55')as $p) {
    if($p->post_parent == 0) {
    if($p->ID== $wp_query->post->ID) {
    echo '<li class="current_page_item">'.$p->post_title.'';
    } else {
    echo '
    <li><a>post_title.'" href="'.get_permalink($p->ID).'">'.$p->post_title.'</a></li>
    ';
    }
    }
    }
    ?>

    [Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    I want to sort_column with menu_order.
    Where to integrate?

    Thanx for your help,
    Kristian

  2. takien
    Member
    Posted 1 year ago #

    get_pages('exclude=22,55&sort_column=menu_order')

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.