Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do I find the Blog ID of the current blog inside a bp_has_blogs() loop?


  • Roger Coathup
    Participant

    @rogercoathup

    I’m sure I must be missing something obvious, but I’m struggling on how to find the blog ID of the current blog inside a bp_has_blogs() loop.

    Anyone, want to point out I shouldn’t work late on Saturdays, and tell me what I’m missing?

    thanks, Roger

Viewing 3 replies - 1 through 3 (of 3 total)
  • i can’t find a template tag just for it but you can find it via

    `$blogs_template->blog->blog_id`


    Roger Coathup
    Participant

    @rogercoathup

    @nuprn1 – thanks

    Anyone, want to point out I shouldn’t work late on Saturdays,

    You shouldn’t work late on Saturdays.
    Hope that helps! :)

    Try working late on Saturdays struggling with what you’d think would be a simple requirement to fetch the users role, no I don’t want to check the current_user_can capability I know that, I want the role assigned, got there but sometimes just sometimes one wonders whether things shouldn’t be simpler.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I find the Blog ID of the current blog inside a bp_has_blogs() loop?’ is closed to new replies.
Skip to toolbar