BuddyDev

Search

[Resolved] BP Profile Tab Pro – Default Tab Error

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14625

    Hi Sujee,
    are you using a normal post for this? or do you want to use a custom post type? I will be happy to share the complete code for achieving it.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 90
    Sujee Kulendran on #14626

    Hi Brajesh,

    I guess just a normal post? Please advise if you think a custom is better as I don’t know what the benefits would be.

    Thank you soooo much!

    Sujee

  • Participant
    Level: Enlightened
    Posts: 90
    Sujee Kulendran on #14637

    Hi Brajesh,

    I hope all is well. Just checking in to see if you were able to help with the code.

    Many thanks,

    Sujee

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14653

    Hi Sujee,
    I will post back the shortcode in an hour or two when back to my dev system.

    I missed it earlier because I was not sure if you needed the code or not.

  • Participant
    Level: Enlightened
    Posts: 90
    Sujee Kulendran on #14664

    HI Brajesh,

    Many thanks. I know this will be very helpful for the community here as well.

    I know you had mentioned standard post type or custom post type. Not sure what the difference would be but I think as long as I can retrieve the post without the other ‘fluff’ that is in a wordpress post (e.g., the comment section, date when it was posted, etc.) – that would be ideal. Just need a video appearing and some text.

    Thanks!

    Sujee

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14683

    Hi Sujee,
    Please use the following code
    https://gist.github.com/sbrajesh/e932e6d8bbfd4a515e070f520ce40ef4

    and in the post content box, you can simply use

    
    [bp-user-last-post]
    
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 90
    Sujee Kulendran on #14688

    Brajesh!

    Fabulous! It worked! I created a private post for that counselor and added that shortcode. Just to confirm so I don’t mess up later – if that counselor published another post anywhere in the blog, that new post will be fetched instead? Basically, it will disallow that counselor from publishing any new content without it affecting the said profile tab?

    Just need to make sure that is the case so I relay that info.

    Thanks!

    Sujee

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14689

    Hi Sujee,
    Your assumptions are correct. The best way to solve the issue is to use a custom post type and use the shortcode like

    
    [bp-user-last-post post_type='custom-post-type-name']
    

    That way, The user can publish the post and it won’t get affected.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 90
    Sujee Kulendran on #14691

    Thank you Brajesh – your support is amazing. I’ve decided to get rid of some of my other 3rd party plugins that performs the same as some of yours – I think your support is second to none. I’ll start with rt-media and substitute with your MediaPress plugin – it looks awesome. Can’t wait to see what I can do with that.

    I’ll update this thread as resolved.

    Thank you!!

    Sujee

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #14692

    Thank you for the kind words Sujee.

    I am looking forward to assist you and hope that the decision to switch will have a positive impact on your project.

    Best Regards
    Brajesh

The topic ‘ [Resolved] BP Profile Tab Pro – Default Tab Error’ is closed to new replies.

This topic is: resolved