Forums

Moving Page tab along (4 posts)

  1. Years612
    Member
    Posted 1 year ago #

    Hi,

    I've created a site map Page on my website and want to move the tab saying "Sitemap" to the end of the list of pages so it appears after the Contacts tab.

    I've tried using the Page Order box at the side of the Edit page but it doesn't seem to do anything.

    How do I fix this?

    Thanks.

  2. Technokinetics
    Member
    Posted 1 year ago #

    You may need to add "sort_column=menu_order" to the code generating your page list (see here for details).

  3. Years612
    Member
    Posted 1 year ago #

    Thanks for your answer. Can you clarify for me exactly where I should be writing this code? This is the first time I've had to do anything more complicated than write a page or post and I'm a complete beginner. Much appreciate your help, thanks.

    Btw, if you want to see the page, the address is http://www.oep.org.uk

    Also, how do you (like you did just now) create a link that starts in the middle of another webpage and not at the top? I thought it would be useful for the sitemap to be able to link to headings within pages. Cheers.

  4. Technokinetics
    Member
    Posted 1 year ago #

    Check your theme files (you'll find them in wp-content/themes/yourthemefolder/), starting with header.php.

    You're looking for the line of code that contains wp_list_pages('some_parameters_go_here=true'). You need to add "&sort_column=menu_order" to give something like wp_list_pages('some_parameters_go_here=true&sort_column=menu_order').

    Hope that makes sense (if not, check the codex page linked to above).

    Good luck. :)
    Tim

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags