Get value of page order field
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get value of page order field’ is closed to new replies.