OK thanks…so I have switched it around as follows:
<?php echo get_the_author_id(), xprofile_get_field_data( 'Specialist Sectors', $multi_format = 'comma' ) ?>
I am now getting something returned, which is unique for each user but it’s returning a number, such as 52, 65 or 1 – I don’t know what these refer to.
Thanks all… @shanebp I’ve inputted the following but it isn’t showing anything, is my implementation incorrect?
<?php echo xprofile_get_field_data( 'Specialist Sectors', get_the_author_id(), $multi_format = 'comma' ) ?>
Screenshot is here of what we are doing:
I am trying to use it in a sidebar widget on a post page. Using the following PHP in the text widget to get back users info:
<div class="<?php echo get_post_meta(get_the_id(), 'Account Type', true); ?>">[Read more]
<a href="/community/members/<?php echo get_the_author_meta('user_login') ?>"> <?php echo…
applegateian replied to the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 7 years, 7 months ago
Does anyone know of a way do get most recent post in the members loop for each author? Thanks.
applegateian started the topic [Resolved] Turn on autocomplete for message composing for non friends in the forum How-to & Troubleshooting 7 years, 7 months ago
My understanding of messages is that from the compose a message page, autocomplete is used to suggest a friend to send a message to. Autocomplete does not show up if the user you are sending a message to is not a friend.
Is there a way to enable autocomplete for ALL users, regardless of whether they are a ‘friend’ or not? My site doesn’t…[Read more]
I am using the following to get a members xprofile data displayed
<?php echo xprofile_get_field_data( 'Specialist Sectors', get_the_author_id()) ?>
It works fine for xprofile fields that are free text, but the fields that are checkboxes, it simply returns ‘array’ to the front end.
Is there a way to include this so it…[Read more]
applegateian started the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 7 years, 8 months ago
What I need to do next is show one recent post by each author on our members home page, presumably within members-loop.php
Is there a way to get…[Read more]
My site will never allow users to make the ‘friends’ connection, so when sending messages, autocomplete will always be ‘off’. I’d rather disable it altogether so the user doesn’t get the spinner when typing in a name. It will never work so I’d rather not have it.
Is this possible?
@applegateian Active 6 years, 4 months ago