• I am wanting to test the value of the “Order” field of a page. Do I use $menu_order to do this? I tried this, but it did not work:

    if( $menu_order == 1 ){
    	echo '<div class="product first">';
    } else {
    	echo '<div class="product">';
    }

    This actually applies the class=”product first” to all the items, not just the one with the order value of 1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I need the answer to this too! You find it?

    You have likely figured this one out by now but I thought I would post the answer for others.
    I wanted to display the page order as a column in the backend. I used the following:
    echo $post->menu_order;
    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get value of page order field’ is closed to new replies.