Forum Replies Created
-
AuthorPosts
-
June 20, 2019 at 3:50 pm in reply to: I can't get images to show for buddypress search results page #23210
dando
Participantcan the_asp_result_field return a link to the profile?
June 20, 2019 at 3:40 pm in reply to: I can't get images to show for buddypress search results page #23209dando
Participantdon’t stress, I found the solution –
I’m putting it here in case anyone else has this problem, go to your functions.php and add this;
add_action(‘init’, ‘cng_author_base’);
function cng_author_base() {
global $wp_rewrite;
$author_slug = ‘members’; // change slug name
$wp_rewrite->author_base = $author_slug;
}This will modify the slug for authors
June 20, 2019 at 3:29 pm in reply to: I can't get images to show for buddypress search results page #23207dando
Participantjust one last thing – if I click on a user’s name, the link takes me to /author/admin/ instead of members/admin. is this a theme thing as well?
-
This reply was modified 6 years, 11 months ago by
dando.
June 20, 2019 at 3:09 pm in reply to: I can't get images to show for buddypress search results page #23205dando
ParticipantThat did the trick 🙂 thank you so much Ernest, you’re a life saver
June 20, 2019 at 2:20 pm in reply to: I can't get images to show for buddypress search results page #23200dando
ParticipantIs this for groups only? I’m using Jupiter X, and I’ve added your code to the search.php fragment like this;
function jupiterx_post_image() { $asp_img = get_asp_result_field('image'); if ( !empty($asp_img) ) { echo "<img src='$asp_img' />"; }after this, if I search for a term that affects both groups and users, the search reveals the groups images, but not the users.
You can see the result here;
June 19, 2019 at 2:58 pm in reply to: I can't get images to show for buddypress search results page #23191dando
Participant
-
This reply was modified 6 years, 11 months ago by
-
AuthorPosts