Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a Title for Activity Post?

  • @imjscn

    Participant

    Since some plugins are adding stuffs into activity stream, so I guess adding a title would not be imposible. But, how? Can we work it out the similiar way as adding a metabox ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @r-a-y

    Keymaster

    On the backend, you’d need to experiment with adding some activity meta.

    In BP 1.5, all the activity meta functions are available in bp-activity/bp-activity-functions.php:
    https://buddypress.trac.wordpress.org/browser/tags/1.5/bp-activity/bp-activity-functions.php#L438

    On the frontend, you’ll need to add an input field to the post form and then grabbing the form data so you can save it as activity meta. Check out /bp-default/activity/post-form.php for the actual form.

    Saving the title might be a little tricky with AJAX though.

    @imjscn

    Participant

    Thanks for the tip! I will see what I can work out :-)

    @thisisnousername

    Participant

    Did anyone get this working?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add a Title for Activity Post?’ is closed to new replies.
Skip to toolbar