-
Can we have include_fields in List template? i want to show specific fields in List template. Thx
No, it works on view profile/edit profile only. Thanks 🙂
To show fields in compact list, you need to customize the list template and add the fields you want. with:
userpro_profile_data(‘custom_field’, $user_id)
thanks. I found list.php:line 28:
permalink( $user_id ); ?>” class=”userpro-list-item-name” title=”<?php _e(‘View Profile’,’userpro’); ?>”><?php echo userpro_profile_data(‘display_name’, $user_id); ?><?php echo userpro_show_badges( $user_id ); ?>
Don’t know what to do to show custom field in List Template. Sorry, pls. help
As I said, this is would be custom coding. Outside the scope of customer support really. If you wait, I will add a documentation or customization tutorial to do that. 🙂
thanks. i added <?php echo userpro_profile_data(‘rating_photo’, $user_id);?> in list.php to show value of custom picture field rating_photo but the page is showing link to image and not actual image. thanks again.
Yes, you need to wrap it in or html, the custom field stores the value/url only. 🙂 That’s basic html required to wrap the data
thanks. i have done it and it worked.
<div class=”userpro-list-item-rp” data-key=”rating_photo”>
” />
</div>now i am facing another interesting issue. The custom photo added above is visible when i login as admin. However when no login, this does not show? any reason?
You must be logged in to reply to this topic.