• johnnydugs

    (@johnnydugs)


    Hello all,

    I am using the wp_page_menu function rather than the wp_list_pages function in order to display a link to my homepage.

    2 issues:

    1) the wp_page_menu function gives all the

    list items a class of “page_item”. However, for the current page instead of adding the class “current_page_item” like the wp_list_pages function does, it replaces the “page_item” class with “current_page_item”. Is this the intent of wordpress or is it a mistake?

    2) it appears there is no way to remove the outer div element (nor the ul element inside the div) without a hack. however, the wp_list_pages function provides simple arguments to do this. Why does wordpress (a very semantic platform in its markup) lock you in to that markup?

    Thoughts – perhaps wordpress is phasing out the wp_page_menu function? If so, why is there not a boolean option to include the homepage in the wp_list_pages function?

    Any help or suggestions would be appreciated.

    thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘wp_page_menu bug on current page’ is closed to new replies.