WordPress.org

Ready to get started?Download WordPress

Forums

Forcefully define the current page when using wp_list_pages() (1 post)

  1. halles
    Member
    Posted 4 years ago #

    When creating more complex sites, for pages of posts and such it's useful to have this function be able to pass a page id as the current page when displaying.

    I modified the function (actually replicated it so it won't collide with WP's original) and added $current_page to the default values for accepted $args. After all the function does set $current_page to 0 as initialization.

    Afaik, it's not causing any breakage anywhere. I'll report if something wrong pops up.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags