Custom Post activity_action output wonky
However, two issues came up… 1) the blurb in the SWA is not as expected, and 2) the Featured image never came through. I’m just trying to get an idea as to why.
As referenced, the activity_action is:
$activity_action = sprintf( __( '%1$s created a new Post, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
But what shows up on the SWA is: “username wrote a new item” — where username links to the Author and the word item links to the post.
I was expecting something along the lines of: “username created a new Post, post title” — where post title was the title of the post and its link.
Any guidance on what I am missing to make these two things happen?
- The topic ‘Custom Post activity_action output wonky’ is closed to new replies.