Hi,
I want to create a custom media loop in profile page so I can get only images link of the current member. I’ve tried with this code but it is showing this error Call to a member function have_media() on a non-object in /home/proacmatchmil/public_html/wp-content/plugins/buddypress-media/app/main/controllers/template/rt-template-functions.php
`<?php if ( have_rtmedia () ) : ?>
<ul class="rtmedia-list rtmedia-album-list">
<?php while ( have_rtmedia () ) : rtmedia () ; ?>
<li> <a href ="<?php rtmedia_permalink (); ?>" title="<?php echo rtmedia_title (); ?>">
<img src="<?php rtmedia_image ( 'rt_media_thumbnail' ); ?>" alt="<?php echo rtmedia_title(); ?>">
</a></li>
<?php endwhile ; ?>
</ul>
<?php endif; ?>`
Please help urgently.
Thanks.