Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to identify bp->examples->current_example among all components?

  • Avatar of imjscn
    imjscn
    Participant

    @imjscn

    I want to attach a voice dropbox to every post of any post type. The dropbox is a class, if has id, it will populate data, if call it without id, it will create new. I can add it to the loop template where it can get_the_ID within the loop. But if it is bp create/edit page, I need to know the id of current post of current component, that is bp->examples->current_example in all the bp components. It’s not one single component, but I need to identify the single post across all component. How can I code this?

You must be logged in to reply to this topic.