Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //If social link set from backend then social icon show else not
- <ul>
- <?php
- $socialIcons=['icofont-social-facebook'=>'team_member_fb_link','icofont-social-twitter'=>'team_member_twitter_link','icofont-brand-linkedin'=>'team_member_linkedin_link','icofont-social-google-plus'=>'team_member_googleplus_link'];
- foreach ($socialIcons as $key => $value) {
- $check=get_post_meta(get_the_ID(), $value, true);
- if ($check !="") {
- ?>
- <li><a href="<?php echo get_post_meta(get_the_ID(), $value, true); ?>"><i class="icofont <?php echo $key;?>"></i></a></li>
- <?php
- }
- }
- ?>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement