Posted By

javifr on 10/29/10


Tagged


Versions (?)

Links - Get and show in loop


 / Published in: PHP
 

  1. <?php $links = get_bookmarks( );?>
  2.  
  3. <ul class="links_list">
  4. <?php foreach ($links as $link):?>
  5. <li>
  6. <?=$link->link_name;?><br/>
  7. <a href="<?=$link->link_url;?>" target="_blank"><?=$link->link_url;?></a><br/>
  8. <?=$link->link_description;?>
  9. </li>
  10. <?php endforeach; ?>
  11. </ul>
  12.  

Report this snippet  

You need to login to post a comment.