• I am going crazy trying to convert my current html drop-down menus to wordpress 2.5.1. Can anyone help me translate this code into wordpress?
    I can’t find a way to match up the ” id= ” tags.

    [code removed by request; see below]

    Any clues would be wonderful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter watfordo

    (@watfordo)

    I’m having a tough time converting code from my html navigation to wordpress wp_list_pages. Can anyone help me translate this? I can’t figure out how to match the css with the php code.

    I have page: “About Us” with a child page “Locations”
    and page: “Careers” with no child page.

    I substituted ‘<‘ and ‘>’ with ‘(‘ and ‘)’ to make the code show up in the forum.

    (ul)
    (li) class=”page_item page-item-2″)(a href=”https://website.com/?page_id=2&#8243; title=”About Us”)About Us(/a)
    (ul)
    (li class=”page_item page-item-13″)(a href=”https://website.com/?page_id=13&#8243; title=”Locations”)Locations(/a)(/li)

    (/ul)
    (/li)
    (li class=”page_item page-item-8″)(a href=”https://website.com/?page_id=8&#8243; title=”Careers”)Careers(/a)
    (ul)
    (li class=”page_item page-item-12″)(a href=”https://website.com/?page_id=12&#8243; title=”Benefits”)Benefits(/a)(/li)
    (/ul)
    (/li)
    (/ul)

    You have a button above this text input area that says “CODE”.
    Use it next time, that’s why they made it for you: to enable you to post normal code!

    Thread Starter watfordo

    (@watfordo)

    Sorry, I’ll use it next time.

    I don’t understand how do you think that a menu linking to existing physical html files can be “converted” to a WP function/template tag.

    If you want to use Pages written in WordPress instead of those existing files – just create all those pages in the proper child-parent relationship in your WP admin – and the template tag will do the work for you displaying the list of Pages as menu items.

    Thread Starter watfordo

    (@watfordo)

    My html website uses Javascript and this code to generate drop-down menus.
    The html version is at tech.donwatford.com.

    I have created the supporting pages in WP, I just want them to work with my existing menu system.

    btw, can somebody remove the code from my original post? I posted it incorrectly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Losing my mind converting html menu to wp_list_pages’ is closed to new replies.