2014-05-16 2 views
0

내 소셜 미디어 상자를 내 WordPress 이벤트 플러그인에서 호출되는 사용자 정의 필드 인 해당 링크에 대한 링크와 함께 포장하려고합니다. 이벤트 페이지 (예 : http://familyoffestivals.com/event/hangout-music-festival-2014/)를 방문하여 '인기있는 링크'섹션으로 스크롤하면 내가 언급 한 소셜 미디어 상자를 볼 수 있습니다.링크로 소셜 미디어 아이콘 상자 만들기

"인기있는 링크"아이콘은 fontawesome입니다.

<div class=”instagram-fourth”> 
<p style=”float: center;”><span style=”color: #3f729b;”><i class=”fa fa-instagram fa-5x”></i></span></p> 
<?php echo tribe_get_custom_field(‘Instagram’); ?> 
</div> 

나는 이벤트 개발자 ( https://tri.be/support/forums/topic/make-a-link-using-tribe_get_custom_fieldcustom-field-here/를) 요청 그들은 큰 도움이되지 있었다.

도움이 될지 알려주세요.

답변

0

따라서 Instagram의 필드는 해당 이벤트 또는 이벤트 호스트의 instagram URL을 호스팅합니까?

다음과 같이 사용할 수 있습니까?

<a href="<?php echo tribe_get_custom_field('Instagram'); ?>" target="_blank"><i class="fa fa-instagram fa-5x"></i></a> 

나는 클래스에 Instagram 아이콘이 있다고 가정합니다.

또는 사용자 정의 필드에 아이콘과 링크가 있습니까?

그렇다면 Instagram_Logo 및 Instagram_URL로 분해 한 다음 이와 같은 작업을 수행해야 할 것입니다.

<a href="<?php echo tribe_get_custom_field('Instagram_URL'); ?>" target="_blank"><?php echo tribe_get_custom_field('Instagram_Icon') ;?></a> 
관련 문제