Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to find Page ID for default buddypress pages


  • anadarkokid
    Member

    @anadarkokid

    Does anyone know how to find page id fpr pages like “Groups, Activity or Members”?

    I am trying to determine how are they identified. Is there a page id or a conditional tag that tells what kind of page it is?

    Any help would be great thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

  • David Carson
    Participant

    @davidtcarson


    dains
    Participant

    @dains

    Hi, I had the same issue trying to customize the nav bar. I never did find an id for those pages, but it turns out that the main navs are hard-coded into the header.php file, so I was able to manually edit those. After that comes a wp_list_pages function coded to automatically add any other pages that you make, and those page ids are of course available from the editor.


    ripulkr
    Participant

    @ripulkr

    To those who come here searching for this. All the standard Activity, Groups, Members etc pages are stored in WP options table bp-pages.
    So, simply get the option: $page_array=get_option(‘bp-pages’);
    $page_array[‘activity] gives you to pageid for the Activity and so on…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to find Page ID for default buddypress pages’ is closed to new replies.
Skip to toolbar