• Resolved salesbcocom

    (@sales4bcocom)


    Hello everyone. I have a site set-up with several pages and child pages. The child pages have a number set in the sort order. I would like to reference the sort order on the page, so that it appears as part of the title. Can anyone help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter salesbcocom

    (@sales4bcocom)

    Here’s an example

    <h1>Letter <?php MAKE SORT ORDER APPEAR HERE ?>
    <?php the_title(); ?></h1>

    Thread Starter salesbcocom

    (@sales4bcocom)

    I simply used an ordered list for the numbers and made the loop through the items. This works, but is not ideal since the pages can be deleted and numbers skipped. However, for now it works.

    Thread Starter salesbcocom

    (@sales4bcocom)

    I have just today found a better solution…

    <?php echo $post->menu_order; ?>

    Hope this helps someone else…Let me know if it does.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I reference the sort order on the page’ is closed to new replies.