2014-04-09 5 views
1

buddypress에서 회원 프로필 필드를 멤버 헤더에 추가 할 수 있습니다. 사용자 프로필 필드는 사용자 아바타 옆에 추가 할 수 있습니다. buddypress 회원-header.php에서 절과 같이 주석 :buddypress 회원 헤더의 예기치 않은 T_STRING

<?php 
    /*** 
    * If you'd like to show specific profile fields here use: 
    * bp_member_profile_data('field=About Me'); -- Pass the name of the field 
    */ 
    do_action('bp_profile_header_meta'); 

    ?> 

이 내가 프로필 필드 데이터 "위치"추가하도록 변경 것입니다 :

<?php 

    bp_member_profile_data('field=location’); 

    do_action('bp_profile_header_meta'); 

    ?> 

이 코드를 그 나는 T_STRING 에러를 보냈다. 저는 PHP 경험이 없으므로 WordPress 개발자가이 기능을 사용하는 방법을 구체적으로 설명했기 때문에 쉬운 수정이라고 생각합니다.

도움을 주시면 감사하겠습니다.

답변

1

구문 형광펜은 오류를 보여줍니다.

bp_member_profile_data('field=location’); <--HERE 

변경 그것에 : 응답에 대한

bp_member_profile_data('field=location'); 
+0

덕분에 당신은 펑키 인용문이. 그래도 어떻게 바꾸셨습니까? –