Title: echo single bookmark
Last modified: August 20, 2016

---

# echo single bookmark

 *  [awildthingy](https://wordpress.org/support/users/awildthingy/)
 * (@awildthingy)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/echo-single-bookmark/)
 * Hey all, I’m going crazy, all I want to do is echo out a single bookmark in my
   footer. The Codex would have me believe that the best way to go is get_bookmark()
   but I have been banging my head on the wall for an 2 hours trying to figure out
   the proper syntax as the documentation is shall we say “lacking”. there are no
   examples that I can find and I don’t really even know what kind of value to pass
   it.
 * variations I have tried:
 * <?php echo get_bookmark( 1 ); ?>
    <?php echo get_bookmark( ‘1’ ); ?> <?php echo
   get_bookmark( link_id=1 ); ?> <?php echo get_bookmark( ‘link_id=1’ ); ?> <?php
   echo get_bookmark( id=1 ); ?> <?php echo get_bookmark( ‘id=1’ ); ?>
 * If anyone could share I would highly appreciate it. I’ll personally see to updating
   the codex page with whatever I find because it seriously shouldn’t be so difficult
   to find out.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/echo-single-bookmark/#post-2456179)
 * It returns an object. This is the correct way to call it:
 *     ```
       <?php
       $bookmark = get_bookmark( 1 );
       echo $bookmark->link_name;
       ?>
       ```
   
 * or:
 *     ```
       <?php echo get_bookmark( 1 )->link_name; ?>
       ```
   
 * to make it a link use this:
 *     ```
       <?php
       $bookmark = get_bookmark( 1 );
       echo '<a href="'.$bookmark->link_url.'">'.$bookmark->link_name.'</a>';
       ?>
       ```
   
 * [http://codex.wordpress.org/Function_Reference/get_bookmark](http://codex.wordpress.org/Function_Reference/get_bookmark)
 *  Thread Starter [awildthingy](https://wordpress.org/support/users/awildthingy/)
 * (@awildthingy)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/echo-single-bookmark/#post-2456183)
 * [@keesiemeijer](https://wordpress.org/support/users/keesiemeijer/),
 * Thank you VERY much! See, this example needs to be on the Function Reference 
   page for all to find easily. Works perfectly; Thanks again.
 *  [harrymfa](https://wordpress.org/support/users/harrymfa/)
 * (@harrymfa)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/echo-single-bookmark/#post-2456524)
 * Does anybody know how to find the single bookmark number?
    get_bookmark( $singlebookmark);
 * Specially when I have a couple of different bookmark categories.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘echo single bookmark’ is closed to new replies.

## Tags

 * [bookmarks](https://wordpress.org/support/topic-tag/bookmarks/)
 * [external link](https://wordpress.org/support/topic-tag/external-link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [harrymfa](https://wordpress.org/support/users/harrymfa/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/echo-single-bookmark/#post-2456524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
