• Resolved DeepBlue

    (@deepblue5)


    Hi

    I use Ultimate member for my users profiles

    i would like to show on a tab their videos in public

    so that i would need a shortcode like [user-videos id=xxx]

    how can i do that ?

    thank you ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    You can use the shortcode [aiovg_user_videos id=”1″]

    Here, the “id” attribute represents the user ID of whose videos to show. So, the ID attribute should be dynamically set using the Ultimate Member profile user ID.

    To be honest, I have no experience with the membership plugin you use. But, from their documentation https://docs.ultimatemember.com/article/124-umprofileid I have developed a code. Kindly try adding the following code to the bottom of your theme’s functions.php file,

    function aiovg_shortcode_um_videos() {
        $member_user_id = um_profile_id();
        return do_shortcode( '[aiovg_user_videos id="' . $member_user_id . '"]' );
    }
    add_shortcode( "aiovg_um_videos", "aiovg_shortcode_um_videos" );

    Then, use the shortcode [aiovg_um_videos] on the profile page.

    Hope this helped you!

    Thread Starter DeepBlue

    (@deepblue5)

    Hi

    Thanks a lot it works !

    I must say your support is Five stars !

    I will buy the pro version as i need the frontend submission

    Thank you for the great work ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show user videos’ is closed to new replies.