BuddyDev

Search

Buddypress Activity Shortcode Comments Under Post Page

  • Participant
    Level: Initiated
    Posts: 20
    clyn on #15336

    Hi,

    I’m happy to use your bp activty shorcode plugin and i can call any different activity to any page or post. My question is: I’m creating post template with a plugin and i can call any activity with shorcode under post page template. It’s ok but if possible; i want to display comments under page but comment will be just about published. I know how can i can display comment with post ID but this is template so when different post visited, always display comments about displayed posts under page. Is this possible with any script to add function or bp-custom? Because in my project, i will not use default wp comment under some pages or posts…
    Thanks…

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #15339

    Hi Clyn,
    Thank you for using the plugin.

    1. Since you have control over the tenmplate, you can use the do_shortcode() function to generate output from the shortcode.

    2. The problem I see here is if you do not allow comment, How an activity will be related to the post, do want to relate it to post published activity and comment’s on that?

    PS:- If you can share your shortcode settings, I can quickly change it to use dynamic post id for you.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 20
    clyn on #15347

    Hi,

    thanks your reply very fast 🙂 … Maybe i cant explain very well with my bad english. Page template plugin for Visual Composer and working very well. Page header, title, post content and footer all is displaying very well. When i create my template with Visual Composer such as i’m adding this short code [activity-stream action=new_blog_comment] . Yes also showing buddypress activity comment under post content. But, think that, post title is HELLO POST, when anyone visit hello post, your activity stream shortcode will display only comments activity about “Hello Post”… Now, its showing all activity comment. i’m just imaging now, code can be like this [activity-stream action=new_blog_comment post_id=”DISPLAYED post”] 🙂 ,

    i hope i explained well now with bad english…
    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #15350

    Hi clyn,
    No problem with English.

    I guess, I will have to add this feature in the plugin to show the activity for the current post. Please allow me 2 days, I will push the changes.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 20
    clyn on #15351

    Hi,

    wow its really nice. So, this features (i hope not for only comments) will be great for all this plugin user . if shortcode accept [activity-stream post_id=displayed] or [author_id=displayed_auhthor], in the future some plugin user maybe create different need and solution with this features. Ok, million million thanks and waiting…

    Have a nice day

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #15358

    Thank you.
    Yes, it should be helpful for others.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved