Skip to:
Content
Pages
Categories
Search
Top
Bottom

activity-loop and ACF’s


  • danrbli
    Participant

    @danrbli

    Hi, I want to output my custom post type fields within the activity loop. I have managed to output the posts as activities and now I am trying to access the custom post type fields “title” “main_image” and “story” to output in the activity loop using entry.php.

    I’ve tried $activityTitle = bp_activities_title(); in the entry.php and it outputs nothing to the screen. I’ve tested normal text and it outputs correctly.

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Please use the code button when posting code.

    bp_activities_title() returns the title for all activities.

    If the activity item already exists, try bp_activity_feed_item_title()

    But it sounds like those items do not exist.
    You should not have to output those items.
    It should be done automatically – IF – you filter bp_blogs_record_post_post_types to include your post types.
    More info here.

    If you are using some plugin to create custom post types ( ACF ? ), the creators of that plugin may have some tips on how to use it with BuddyPress.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar