WordPress.org

Ready to get started?Download WordPress

Forums

Showing specific posts as a child of a page (1 post)

  1. Simon Ainley
    Member
    Posted 3 years ago #

    Hi there, I am currently build my own theme, and one of the requirements is that nav has a drop down section that lists the current projects that are currently going on.

    In my nav i need to be able to get all the pages however I also need to be able to add an aditional link that triggers the drop down, to show the current project post links, currently I am using this piece of code.

    I am fine code the drop down functionality, I just need some to tell me, how I can add the titles of the current projects to my nav, and also add a parent li so I can add my js, I am currently using this to buid my nav,

    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic