-
Author
-
November 28, 2013 at 01:27 #7408gdecuirParticipant
The members directory page is not showing the “about us” information below the name.
When I try what was suggested in the following post. I only changed the field names that I wanted displayed.
https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-displayI get this error message….
Fatal error: Call to undefined function dd_action() in /home/content/88/11935488/html/wp-content/themes/sweetdate-child/functions.php on line 103
November 29, 2013 at 11:58 #7455SQadminKeymasterYou probably haven’t copied the whole code. that functions should be add_action() and not dd_action()
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 29, 2013 at 21:06 #7467gdecuirParticipantI added the checked the code and made sure it copied correctly. Now I get the following error message.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ kleo_my_member_data’ not found or invalid function name in /home/content/88/11935488/html/wp-includes/plugin.php on line 429
Warning: Cannot modify header information – headers already sent by (output started at /home/content/88/11935488/html/wp-includes/plugin.php:429) in /home/content/88/11935488/html/wp-includes/pluggable.php on line 899
December 1, 2013 at 01:23 #7520SQadminKeymasterUnfortunately you haven’t added the whole code probably. what did you added?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 1, 2013 at 01:47 #7526gdecuirParticipantThis is the code I loaded….
add_action(‘after_setup_theme’,’ kleo_my_member_data’);
function kleo_my_member_data()
{
global $kleo_config;
//this is the details field, right now it take the “About me” field content
$kleo_config[‘bp_members_details_field’] = ‘About me’;
//this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
$kleo_config[‘bp_members_loop_meta’] = array(
‘City’,
‘State’
);}
December 1, 2013 at 01:50 #7528SQadminKeymasterHi, Try removing the space from ‘ kleo_my_member_data’
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 1, 2013 at 02:01 #7529gdecuirParticipantnow my site wont load and I get the following error
Parse error: syntax error, unexpected T_STRING in /home/content/88/11935488/html/wp-content/themes/sweetdate-child/functions.php on line 31
Line 31 is
$kleo_config[‘bp_members_details_field’] = ‘About me’;December 2, 2013 at 23:17 #7594SQadminKeymasterIt is just a copy/paste operation and to follow instructions here https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display
I just re-pasted my code and totally works. the code goes to sweetdate-child/functions.php inside the lines. It is basic php knowledgeHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 3, 2013 at 09:26 #7621gdecuirParticipantHi,
I got it to work. Not sure what I did but it works now. Next related question. How can I remove the number associated with each directory listed profile? see example above. There is a 43 associated with the Gary profile listing. As a matter of fact all the profiles have a 43 or 44 associated with them. Thanks!December 3, 2013 at 14:18 #7643SQadminKeymasterHi, That is the member age. You can remove it with this code added to sweetdate-child/functions.php
COPY CODE/* Remove age from member directory listing */ add_filter('kleo_bp_meta_fields', 'remove_age_from_member'); function remove_age_from_member($output) { unset($output['age']); return $output; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The topic ‘Members directory page not showing about us information’ is closed to new replies.